Markdown to create pages and table of contents?

后端 未结 30 2645
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-12 08:49

I started to use markdown to take notes.

I use marked to view my markdown notes and its beautiful.

But as my notes get longer I find it diff

30条回答
  •  天涯浪人
    2020-12-12 09:24

    # Table of Contents
    1. [Example](#example)
    2. [Example2](#example2)
    3. [Third Example](#third-example)
    
    ## Example [](#){name=example}
    ## Example2 [](#){name=example2}
    ## [Third Example](#){name=third-example}
    

    If you use markdown extra, don't forget you can add special attributes to links, headers, code fences, and images.
    https://michelf.ca/projects/php-markdown/extra/#spe-attr

提交回复
热议问题