0

I am trying to create a TOC for my Markdown blog.

The methods I am finding here... : Markdown to create pages and table of contents?

....do not work for me because I am naming all of my headers # _</>_ The Setup because I am using CSS on to style the "", giving each header a nice colored Icon next to it. If I simply use ```# The Setup ```` it works great.

This causes issues whenever I try to use [The Setup](#The-Setup).

I tried a few things like [The Setup](#_</>_-The-Setup) and other things, but I can not get it to work.

If someone can point me in the right direction I would greatly appreciate it. Also, if anyone has a better way of adding custom icons next to headers, I think that would be the better way to go about it.

As always, thanks in advance.

ETHan
  • 177
  • 4
  • 13
  • Which Markdown implementation are you using? Autogenerated IDs being assigned to headers is a non-standard feature and each implementation which supports it uses a slightly different method for generating the IDs. – Waylan Dec 30 '19 at 00:11
  • I am using visual studio code and writing .md files for a blog – ETHan Dec 30 '19 at 04:07
  • 1
    That doesn't tell us which Markdown implementation. PHP Markdown, Python-Markdown, markdown.pl, marked.js, common mark, or something else? – Waylan Dec 30 '19 at 15:52
  • I am using Gridsome.org and placing .md files. I am then using the Vue-remark plugin to display the markdown content in my Vue app. I am new to markdown, so I apologize for my lack of knowledge here. – ETHan Dec 30 '19 at 16:21
  • I also wanted to add that in VS Code I am using a markdown TOC generator extension and it doesn’t really work ( because I have “_>_” in each of my headers ). – ETHan Dec 30 '19 at 16:26
  • maybe try vscode-pandoc instead? – mb21 Jan 03 '20 at 15:01

0 Answers0