Skip to content

Consider disallowing backslashes in MyST targets #37

Open
@hukkin

Description

@hukkin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions