Closed as not planned
Closed as not planned
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
When the markdown contains a :
, but that is not part of a directive, it is still parsed as one. E.g. in german, there is a style of gendering that uses :
as part of a word
Liebe Mitarbeiter:innen
This gets parsed as a directive :innen[]
Solution
Allow the library user to specify what directive names should be accepted as part of the parsing and which should be skipped.
Alternatives
I see two alternatives:
- Fix this in the rendering stage: I.e. make sure that when rendering a directive, we convert the AST back into the markdown representation. I think this is undesirable, since the exact (and textually correct) representation may be lost. E.g. in this example, it would be hard to figure out if the directive should be rendered as
:innen
or:innen[]
just from the AST - Do not parse
\w:\w
as a directive. I think this is undesirable because it changes the parsing in a non-backward-compatible way and only fixes this specific problem