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
myst_role misparses inlines that begin with a role occurences and end with \ because its checks for leading \ unintentionally wraps around the end of srcCharCode and checks the last char code instead.
problem
This is a pretty clear misparse that causes rendering errors. admittedly it's not very likely to be hit in the grand scheme of things, but we've hit it nevertheless.
Reproduce the bug
render any string that contains only a myst_role followed by \, with no leading or trailing whitespace.
List your environment
markdown_it: 2.1.0
mdit_py_plugins: 0.3.3
python: 3.10.9
OS: nixos unstable
The text was updated successfully, but these errors were encountered:
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Describe the bug
context
myst_role misparses inlines that begin with a role occurences and end with
\
because its checks for leading\
unintentionally wraps around the end ofsrcCharCode
and checks the last char code instead.expectation
bug
problem
This is a pretty clear misparse that causes rendering errors. admittedly it's not very likely to be hit in the grand scheme of things, but we've hit it nevertheless.
Reproduce the bug
render any string that contains only a myst_role followed by
\
, with no leading or trailing whitespace.List your environment
The text was updated successfully, but these errors were encountered: