Prelude
In the GFM spec, it is said that:
This document is generated from a text file,
spec.txt
, written in Markdown with a small extension for the side-by-side tests. The scripttools/makespec.py
can be used to convertspec.txt
into HTML or CommonMark (which can then be converted into other formats).
I was unable to find a public repository containing these files, but spec.txt
can be found under the same web
directory as the spec itself. This is not my main question, but I would be happy if someone could point out a repository where these files are officially maintained.
Main Assumption
According to the above quote, I assume that all code in spec.txt
, aside from the code dedicated to side-by-side tests, is legitimate GFM.
Main Question
In spec.txt
, there is the following code:
## Characters and lines
Any sequence of [characters] is a valid CommonMark
document.
A [character](@) is a Unicode code point. Although some
code points (for example, combining accents) do not correspond to
characters in an intuitive sense, all code points count as characters
for purposes of this spec.
In the rendered spec, the link [characters]
and also the link [character](@)
have been converted to this cross reference link:
https://github.github.com/gfm/#character
Does this syntax implement cross references (aka named anchors) in GFM? There is a popular question about such a feature which suggests that no pure Markdown solution for cross references exists - however, if this (@)
-based syntax is implemented in the parser that parsed spec.txt
, why is it not specified in the spec?