-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Error when using image references #585
Error when using image references #585
Comments
In some circumstances, on a reference style image, the last capturing group is ignored, which causes the fucntion argument to return the number of matches instead of a string (or undefined). Checking if the title parameter is a string ensures that the title parameter is actually something that was caught by the regex and not some metadata. Closes #585
Should be fixed now. @pgengler can you please test if it's working for you?
|
In some circumstances, on a reference style image, the last capturing group is ignored, which causes the fucntion argument to return the number of matches instead of a string (or undefined). Checking if the title parameter is a string ensures that the title parameter is actually something that was caught by the regex and not some metadata. Closes #585
Which version? |
with the http://demo.showdownjs.com/ test, is it the newest version? test data: |
@yuanjilee The issue you report is not related to this one. It has to do with "parentheses priority". You should open a new issue |
When using a markdown image that specifies the image URL via a footnote/reference, such as:
the converter throws an error:
Reproducible in this JSFiddle using 1.8.6; I was also reproduce it locally with the
master
branch (2.0.0-alpha.1).(GFM reference for this usage)
The text was updated successfully, but these errors were encountered: