mdit-py-plugins icon indicating copy to clipboard operation
mdit-py-plugins copied to clipboard

Consider disallowing backslashes in MyST targets

Open hukkin opened this issue 3 years ago • 2 comments
trafficstars

Describe the problem/need and solution

Context In mdit-py-plugins < 0.3 it backslashes were not allowed in MyST targets. Now they are.

Problem / Idea This is now a valid MyST target:

(myst_target\)=

I think it would be more intuitive and in line with CommonMark if the backslash escape worked, i.e. prevented the target being parsed successfully.

Solution Disallow backslashes in MyST targets.

Benefit Consistency with backslashes in CommonMark.

Guide for implementation

No response

Tasks and updates

No response

hukkin avatar Feb 01 '22 17:02 hukkin

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
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).
Welcome to the EBP community! :tada:

welcome[bot] avatar Feb 01 '22 17:02 welcome[bot]

Fair 👍 should be relative easy to make a PR 😉

chrisjsewell avatar Feb 01 '22 17:02 chrisjsewell