diff options
author | John MacFarlane <jgm@berkeley.edu> | 2010-12-12 20:30:55 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2010-12-12 20:30:55 -0800 |
commit | 3748dfeb915777868bb10953ab7b55f5ccd2f87c (patch) | |
tree | 4c1994613ec76a37affa1ed4e15985be6ce9ada1 | |
parent | 250aa202505b077de548ecd19ba5f8b2867fe4ce (diff) | |
download | pandoc-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.
-rw-r--r-- | src/Text/Pandoc/Readers/Markdown.hs | 2 |
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' |