Markdown reader: Fix bug with footnotes at end of fenced div.

Cloess #9576.
This commit is contained in:
John MacFarlane
2024-03-14 11:04:26 -07:00
parent 876bd49786
commit 95661b6a05
2 changed files with 24 additions and 0 deletions
+1
View File
@@ -417,6 +417,7 @@ noteMarker = string "[^" >>
rawLine :: PandocMonad m => MarkdownParser m Text
rawLine = try $ do
notFollowedBy blankline
notFollowedByDivCloser
notFollowedBy' $ try $ skipNonindentSpaces >> noteMarker
optional indentSpaces
anyLine
+23
View File
@@ -0,0 +1,23 @@
```
% pandoc -t native
::: {#something}
Text with a footnote.[^3]
[^3]: A footnote.
:::
^D
[ Div
( "something" , [] , [] )
[ Para
[ Str "Text"
, Space
, Str "with"
, Space
, Str "a"
, Space
, Str "footnote."
, Note [ Para [ Str "A" , Space , Str "footnote." ] ]
]
]
]
```