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.
commit3748dfeb915777868bb10953ab7b55f5ccd2f87c
authorJohn MacFarlane <jgm@berkeley.edu>
dateSun 12 Dec 2010, 20:30 (16 years ago)
parent250aa20
src/Text/Pandoc/Readers/Markdown.hs+1−1
@@ -911,7 +911,6 @@ inlineParsers = [ str
911911 , strong
912912 , emph
913913 , note
914− , inlineNote
915914 , link
916915 , cite
917916 , image
@@ -919,6 +918,7 @@ inlineParsers = [ str
919918 , strikeout
920919 , superscript
921920 , subscript
921+ , inlineNote -- after superscript because of ^[link](/foo)^
922922 , autoLink
923923 , rawHtmlInline'
924924 , rawLaTeXInline'