-
Notifications
You must be signed in to change notification settings - Fork 58
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
Incorrect attribute assignment for bracketed text within code within items #94
Comments
Thanks for the report🙂 I’m on vacation and will be away from computer until next week. Feel free to look at the token tree(markdow-it.github.io, choose debug) and the rules (patterns.js) to figure out what fails. |
With your hints, I was able to narrow down the exact issue, added some tests, and a PR with a fix (#95). Note that the first two commits of the PR fix this specific issue. I added two more tests that I thought were related in c18bdaa (which pass without any code changes), and b8434bd is a judgement call. I believe the I'm happy to edit out one or both of c18bdaa and/or b8434bd if you think that would be best. Let me know if you'd like any changes after you get back from your vacation. |
Good judgement call on the tests, I've merged as is. Released in |
I came across this bug while writing a README for a javascript package.
This test fails (see rivy@795a537 in rivy/js.markdown-it-attrs/fix.item+code)...
The bracketed text is being removed from the code section and applied as an attribute to the item. It should, I believe, stay within the code section, untouched.
Example input:
Current output:
Expected output:
The text was updated successfully, but these errors were encountered: