mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-01 15:38:09 +08:00
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:
@@ -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
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
```
|
||||
% pandoc
|
||||
foo^[a note
|
||||
|
||||
with multiple paragraphs]
|
||||
^D
|
||||
<p>foo^[a note</p>
|
||||
<p>with multiple paragraphs]</p>
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user