-
Notifications
You must be signed in to change notification settings - Fork 228
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
into_offset_iter() does not give correct range for link references #430
Comments
Good catch, and thank you for reporting it. I shall investigate. |
Also, Testing this[^1] out.
[^1]: Footnote. Outputs:
|
Addresses GitHub issue pulldown-cmark#430.
This is related to #411, not only is the range misreported here, but some information is missing. |
@marcusklaas could there be a release for this if possible? I'm trying to reliably parse out the link reference and it's hard without this. Thanks! |
Yes, I'll do a release containing this fix shortly. Planning one before the end of the week. |
It was released! |
Thanks @marcusklaas! I just tested it out now and it's working well 🙂 |
For example, given the following markdown:
The events and ranges are like so:
So for inline links it will give the full range of
5..34
, which is correct. The reference link is incorrect though as it gives35..36
instead of35..60
.I can look into this issue.The only reason I need this though is because I am manually parsing out link reference text because it's not provided another way. Edit: Actually, I'm just going to work around this as I don't have time at the moment to fix it.The text was updated successfully, but these errors were encountered: