aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Citeproc.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-05-17 18:08:02 +0200
committerAlbert Krewinkel <albert@zeitkraut.de>2021-05-17 18:08:02 +0200
commit1843a8793a9043a45c8c427b06f100461889d7ef (patch)
treec217544df5eeb0fc47f6870fe1fa219492fdecf4 /src/Text/Pandoc/Citeproc.hs
parent25f5b927773eb730c2d5ef834bd61e1d2d5f09df (diff)
downloadpandoc-1843a8793a9043a45c8c427b06f100461889d7ef.tar.gz
HTML writer: keep attributes from code nested below pre tag.
If a code block is defined with `<pre><code class="language-x">…</code></pre>`, where the `<pre>` element has no attributes, then the attributes from the `<code>` element are used instead. Any leading `language-` prefix is dropped in the code's *class* attribute are dropped to improve syntax highlighting. Closes: #7221
Diffstat (limited to 'src/Text/Pandoc/Citeproc.hs')
0 files changed, 0 insertions, 0 deletions