logo
Articles About Github

Articles

  • Latest articlest
  • Articles with Github code

Topic

  • Javascript
    • Svelte
    • Node JS
  • Docker

Others

  • Newsletter
How to create a JSON table of contents with markdown-it and markdown-it-anchor September 18, 2020 · 5 min read

There are some plugins to create a table of content using markdown-it, but sometimes you want to create a custom component for rendering your TOC.

Here a simple example on how to get the table of content's tree with vanilla javascript without writing any markdown-it plugin.

bash
o
JavascriptNode JSArticles with Github code
Read More

    Articles

    • Latest articlest
    • Articles with Github code

    Topic

    • Javascript
      • Svelte
      • Node JS
    • Docker

    Others

    • Newsletter

    Personal website of Ángel Blanco

    Developed by Ángel Blanco hosted on Github

    This project this libraries

    framework svelte-kit
    css bulma
    js svelte
    bundler rollup
    md markdown-it

    And all of these...