-
Notifications
You must be signed in to change notification settings - Fork 1
Description
The line An [c\[admon] block
raises a conversion error:
Error: 'c\' is an invalid node tag.
Forcing to change the line to An [c \[admon] block
.
I would expect the pmlc
parser to consider any invalid token ID character (i.e. [^a-z_]
) as a word boundary, making it unnecessary to insert a space when a tag is followed by an escape, the [
of a nested node, etc.
At least, this is how I've implemented most tags in Sublime PML, where nodes are usually captured via a RegEx like (?<!\\)\[c\b
. This seems the natural way to handle opening node tags, for it will cover all sort of contexts — e.g. the tag being followed by spaces, tabs, or even a new line:
Some [c
inline
code
]
which is perfectly valid PML code.
In any case, these details are important to know to correctly implement editor syntaxes that correctly mimic pmlc
's behaviour — as the saying goes, "The devil is in the details".