From 3748dfeb915777868bb10953ab7b55f5ccd2f87c Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 12 Dec 2010 20:30:55 -0800 Subject: 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. --- src/Text/Pandoc/Readers/Markdown.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Readers') 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' -- cgit v1.2.3