mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
Markdown reader: Fix bug with footnotes at end of fenced div.
Cloess #9576.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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." ] ]
|
||||
]
|
||||
]
|
||||
]
|
||||
```
|
||||
Reference in New Issue
Block a user