Skip to content

Instantly share code, notes, and snippets.

View yamgent's full-sized avatar

Maurice Wangleng Tan yamgent

  • Singapore, Singapore
  • 09:26 (UTC +08:00)
View GitHub Profile
@yamgent
yamgent / headingAnchors.md
Last active January 15, 2019 02:51
GitHub Flavoured Markdown Heading Anchors

GFMD removes special characters (such as the brackets) when generating anchors

Other characters include non alphanumeric characters like colon, semi-colon, etc.

How does GFMD resolves conflicting anchors?

Notice that the anchors for the three headings below all resolve to foo-bar (but subsequent ones will be appended with a unique number).

Foo: Bar