git.iko.soy/typeable/pandoc
on master help sign in
Markdown reader: improved handling of mmd link attributes in references.
8e9131dJohn MacFarlane
src/Text/Pandoc/Readers/Markdown.hs+2
@@ -334,6 +334,8 @@ referenceKey = try $ do
334 skipMany spaceChar
334 skipMany spaceChar
335 notFollowedBy' referenceTitle
335 notFollowedBy' referenceTitle
336 notFollowedBy' $ guardEnabled Ext_link_attributes >> attributes
336 notFollowedBy' $ guardEnabled Ext_link_attributes >> attributes
337+ notFollowedBy' $ guardEnabled Ext_mmd_link_attributes >>
338+ try (spnl <* keyValAttr)
337 notFollowedBy' (() <$ reference)
339 notFollowedBy' (() <$ reference)
338 many1Char $ notFollowedBy space >> litChar
340 many1Char $ notFollowedBy space >> litChar
339 let betweenAngles = try $ char '<' >> manyTillChar litChar (char '>')
341 let betweenAngles = try $ char '<' >> manyTillChar litChar (char '>')
test/command/7080.mdnew file+8
@@ -0,0 +1,8 @@
1+```
2+% pandoc -f markdown_mmd -t native
3+![][image]
4+
5+[image]: image.png width=100px height=150px
6+^D
7+[Para [Image ("",[],[("width","100px"),("height","150px")]) [] ("image.png","")]]
8+```