Markdown reader: improved handling of mmd link attributes in references.
Previously they only worked for links that had titles. Closes #7080.
This commit is contained in:
parent
0ab3e4048c
commit
8e9131db4e
2 changed files with 10 additions and 0 deletions
|
@ -334,6 +334,8 @@ referenceKey = try $ do
|
|||
skipMany spaceChar
|
||||
notFollowedBy' referenceTitle
|
||||
notFollowedBy' $ guardEnabled Ext_link_attributes >> attributes
|
||||
notFollowedBy' $ guardEnabled Ext_mmd_link_attributes >>
|
||||
try (spnl <* keyValAttr)
|
||||
notFollowedBy' (() <$ reference)
|
||||
many1Char $ notFollowedBy space >> litChar
|
||||
let betweenAngles = try $ char '<' >> manyTillChar litChar (char '>')
|
||||
|
|
8
test/command/7080.md
Normal file
8
test/command/7080.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
```
|
||||
% pandoc -f markdown_mmd -t native
|
||||
![][image]
|
||||
|
||||
[image]: image.png width=100px height=150px
|
||||
^D
|
||||
[Para [Image ("",[],[("width","100px"),("height","150px")]) [] ("image.png","")]]
|
||||
```
|
Loading…
Add table
Reference in a new issue