aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Readers
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-12 20:30:55 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-12 20:30:55 -0800
commit3748dfeb915777868bb10953ab7b55f5ccd2f87c (patch)
tree4c1994613ec76a37affa1ed4e15985be6ce9ada1 /src/Text/Pandoc/Readers
parent250aa202505b077de548ecd19ba5f8b2867fe4ce (diff)
downloadpandoc-3748dfeb915777868bb10953ab7b55f5ccd2f87c.tar.gz
Markdown reader: fix superscripts with links.
Moved inlineNote parser after superscript parser, so ^[link](/foo)^ gets recognized as a superscripted link, not an inline note followed by garbage. Thanks to Conal Elliott for pointing out the problem.
Diffstat (limited to 'src/Text/Pandoc/Readers')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index a68741bda..88aae7b3f 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -911,7 +911,6 @@ inlineParsers = [ str
, strong
, emph
, note
- , inlineNote
, link
, cite
, image
@@ -919,6 +918,7 @@ inlineParsers = [ str
, strikeout
, superscript
, subscript
+ , inlineNote -- after superscript because of ^[link](/foo)^
, autoLink
, rawHtmlInline'
, rawLaTeXInline'