Don't parse inline notes with blank lines inside.
Previously we parsed them but discarded part of the content. Closes #8028.
This commit is contained in:
parent
ec27946869
commit
f3cfeba3ef
2 changed files with 12 additions and 1 deletions
|
@ -209,6 +209,7 @@ inlinesInBalancedBrackets =
|
|||
(() <$ (escapedChar <|>
|
||||
code <|>
|
||||
math <|>
|
||||
endline <|>
|
||||
rawHtmlInline <|>
|
||||
rawLaTeXInline') >> go openBrackets)
|
||||
<|>
|
||||
|
@ -217,7 +218,7 @@ inlinesInBalancedBrackets =
|
|||
<|>
|
||||
(char '[' >> go (openBrackets + 1))
|
||||
<|>
|
||||
(anyChar >> go openBrackets)
|
||||
(satisfy (/= '\n') >> go openBrackets)
|
||||
|
||||
--
|
||||
-- document structure
|
||||
|
|
10
test/command/8028.md
Normal file
10
test/command/8028.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
```
|
||||
% pandoc
|
||||
foo^[a note
|
||||
|
||||
with multiple paragraphs]
|
||||
^D
|
||||
<p>foo^[a note</p>
|
||||
<p>with multiple paragraphs]</p>
|
||||
|
||||
```
|
Loading…
Reference in a new issue