You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pandoc documentation allows inline formatting in line blocks:
Inline formatting (such as emphasis) is allowed in the content, but not block-level formatting (such as block quotes or lists).
However, it seems inline formatting can't cross line boundaries. Consider an example:
$ cat test.md
*In normal paragraphs
emphasis works for
entire paragraph.*
| *But in line blocks
| emphasis doesn't work
| for entire block.*
| *Each line*
| *must be emphasized*
| *separately.*
$ pandoc -f markdown -t html5 ./test.md
<p><em>In normal paragraphs emphasis works for entire
paragraph.</em></p>
<div class="line-block">*But in line blocks<br />
emphasis doesn’t work<br />
for entire block.*</div>
<div class="line-block"><em>Each line</em><br />
<em>must be emphasized</em><br />
<em>separately.</em></div>
In the first line block asterisks are not recognized as emphasis. That's probably not a big issue, but you may want to fix either implementation or documentation.
We represent a lineblock as a list of [Inline] lines, which we need to parse individually, so we can't really have formatting crossing line breaks. We can document this though.
Pandoc documentation allows inline formatting in line blocks:
However, it seems inline formatting can't cross line boundaries. Consider an example:
In the first line block asterisks are not recognized as emphasis. That's probably not a big issue, but you may want to fix either implementation or documentation.
pandoc 2.19.2
Compiled with pandoc-types 1.22.2.1, texmath 0.12.5.5, skylighting 0.13.2,
citeproc 0.8.1, ipynb 0.2, hslua 2.2.1
Scripting engine: Lua 5.4
Fedora 38 @ x86_64
The text was updated successfully, but these errors were encountered: