diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-04-20 13:34:41 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-04-20 13:34:41 -0700 |
| commit | f3cfeba3efc1a94b02040e5b206123f58d08313a (patch) | |
| tree | a3edbfc02203bd97ddd73517c64313c81d6d6b8a /src | |
| parent | ec27946869e6829348fc14c6c9eca14af005cdcc (diff) | |
Don't parse inline notes with blank lines inside.
Previously we parsed them but discarded part of the content.
Closes #8028.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs index 63a69774b..227d6e791 100644 --- a/src/Text/Pandoc/Readers/Markdown.hs +++ b/src/Text/Pandoc/Readers/Markdown.hs @@ -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 |
