Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[GFM] wrong ID generation for headers containing -- #459
Consider the following fragment of an
... see [--foobar](#option---foobar) option below. ... ## Option --foobar
The above gets rendered by GitHub to the following:
Now, if we use kramdown GFM to convert this .md, we'll have the following two problems:
While the first issue is only bad in some specific cases, the second one is really bad as it breaks some intralinks in the resulting document. Perhaps it makes sense to disable double-dash and triple-dash conversion for GFM (say, another option to gfm_quirks)?
referenced this issue
Oct 11, 2017
If we change the way link generation works for the GFM parser, it might break existing documents. However, since it is GFM we are talking about and the implementation in kramdown is not quite complete, I would consider such a change a bug fix and not a feature change.
A pull request for this is welcome.