You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure this is a bug. I understand why one might think it is, but short reference links (where the label is the ref) are an undocumented feature of Markdown and, as demonstrated by Babelmark, this does not work in the reference implementation either.
Interestingly, the PHP and Python implementations parse the outer link, but miss the image, while markdown.pl (the reference implementation) misses the outer link but parses the image.
However, what is more interesting is the behavior when we separate the image link out from the wrapping link (see babelmark. It appears that Python-Markdown and markdown.pl 1.0.1 are the outliers in that neither recognize the short ref for images (markdown.pl also doesn't recognize the short ref for links as that was added in 1.0.2). This is clearly a bug. Why would we recognize short refs for links but not images?
Activity
waylan commentedon Jan 12, 2020
I'm not sure this is a bug. I understand why one might think it is, but short reference links (where the label is the ref) are an undocumented feature of Markdown and, as demonstrated by Babelmark, this does not work in the reference implementation either.
Interestingly, the PHP and Python implementations parse the outer link, but miss the image, while
markdown.pl(the reference implementation) misses the outer link but parses the image.However, what is more interesting is the behavior when we separate the image link out from the wrapping link (see babelmark. It appears that Python-Markdown and
markdown.pl1.0.1 are the outliers in that neither recognize the short ref for images (markdown.plalso doesn't recognize the short ref for links as that was added in 1.0.2). This is clearly a bug. Why would we recognize short refs for links but not images?erez-o commentedon Jan 13, 2020
Ok,
If I understand, you correctly, I think that once you recognize short refs as images, you would get the expected behavior I described above:
If
Becomes
Then:
Becomes (currently in python-markdown):
See babel
[-]image + reference[/-][+]image short-reference links not supported[/+]Support short reference image links.
Support short reference image links.