Skip to content

RFC Proposal: Only ASCII-word-characters and dash are allowed in anchor names#64

Closed
eemeli wants to merge 1 commit into
masterfrom
RFC-anchors-word-dash
Closed

RFC Proposal: Only ASCII-word-characters and dash are allowed in anchor names#64
eemeli wants to merge 1 commit into
masterfrom
RFC-anchors-word-dash

Conversation

@eemeli
Copy link
Copy Markdown
Member

@eemeli eemeli commented Jul 23, 2020

At the moment, an anchor name can consist of almost any printable character, with the following specific exceptions:

\t | \r | \n | ' ' | ',' | '[' | ']' | '{' | '}'

Some implementations support a stricter subset of characters.
LibYAML, for instance, only supports:

'A'-'Z' | 'a'-'z' | '0'-'9' | '_' | '-'

This freedom in anchor names is useless to the user, while making parsing more difficult.

@ingydotnet ingydotnet added the RFC Request For Comment label Jul 23, 2020
@eemeli eemeli requested review from a team and pantoniou July 29, 2020 17:22
@ingydotnet
Copy link
Copy Markdown
Member

Merged as RFC-0003

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

RFC Request For Comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants