-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link text inline content fails to parse image references #407
Comments
@jingibus, thank you for catching it. I can confirm it is a bug. Will release fix shortly. |
@jingibus, btw, the expected output in your case would be:
the alt is empty because you are using syntax |
Fix for this is available. Repo updated, maven updated but may take a while to show up in maven central. |
@jingibus, had to make another release |
Unbelievable. Thank you so much! I've got a followup that's specific to MultiMarkdown coming, but I've confirmed the issue reported here is fixed on my end. |
The CommonMark spec says that link text may itself contain inline content. Example 525:
yields:
In FlexMark, however, inline content that consists of an image reference fails to parse and is passed straight through as the link text. Example test case:
yields:
The expected output is:
Verified with
ParserEmulationProfile.COMMONMARK_0_28
andParserEmulationProfile.MULTI_MARKDOWN
.Additional context:
My application uses
ParserEmulationProfile.MULTI_MARKDOWN
. MultiMarkdown uses image references to encode width/height data, which I am reliant on. So this is a hard blocker for me that I will need to work around in one way or another.The text was updated successfully, but these errors were encountered: