Replies: 2 comments
-
One benefit of the UAX31 profile is that it restricts the first character ( On the other hand, it disallows some common characters like |
Beta Was this translation helpful? Give feedback.
-
On second thought, nope. Unicode just complicates things. A compromiseReserve non-alphanumeric printable ASCII characters for future use by disallowing as the first character of identifiers. In other words, ASCII codes 33-47, 58-64, 91, 93-96 and 123-126:
Note that
Best of both worlds? |
Beta Was this translation helpful? Give feedback.
-
Programming languages typically do this for identifiers (Rust for example).
CommonMark only specifies some restrictions and refers to Unicode case folding when normalizing reference links.
I see two alternatives:
^
,?
and-
[
and]
[
and]
in the middleI don't know what the benefits/drawbacks are for either of these. Input would be appreciated.
Here's a stab at UAX31 conformity:
Beta Was this translation helpful? Give feedback.
All reactions