summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs1
-rw-r--r--test/command/9576.md23
2 files changed, 24 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index 2890c0125..206e5bc3c 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -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
diff --git a/test/command/9576.md b/test/command/9576.md
new file mode 100644
index 000000000..e529a8f29
--- /dev/null
+++ b/test/command/9576.md
@@ -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." ] ]
+ ]
+ ]
+]
+```