Search code examples
markdowngithub-flavored-markdown

Table of content not referring unicode characters


I have the following title:

##A Title with icon ✏

I want to reference it in a table of contents but the following does not work:

- [A Title with icon ✏](#a-title-with-icon-✏)

It is also fine to remove the icon in the summary, but how to accomplish the linking?


Solution

  • To link the following title (pay attention to space after hashes):

    ## A Title with icon ✏
    

    just ignore the Unicode character (pay attention to the trailing hyphen):

    - [A Title with icon ✏](#a-title-with-icon-)
    

    P.S: tested on GitHub and BitBucket, it works fine.