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:
John MacFarlane 2022-04-20 13:34:41 -07:00
parent ec27946869
commit f3cfeba3ef
2 changed files with 12 additions and 1 deletions

View file

@ -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
View file

@ -0,0 +1,10 @@
```
% pandoc
foo^[a note
with multiple paragraphs]
^D
<p>foo^[a note</p>
<p>with multiple paragraphs]</p>
```