This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 111
Generate wrong TOC #89
Comments
I am also having this issue. |
+1 |
+1 |
This is a duplicate of #65 - see the answer there |
save as \n |
+1 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
EDIT:
You can fix it with just set it
Eol
to\n
like descriped here:GitHub issue - Solution
The only not working thing is that those
s from the headline text goes into headline anchor link too!So basically you have to remove them from the Anchor link manually...
This should be fixed and it's not a duplicate to the #65 issue post.
Alternatively use the plugin called:
Markdown All in One
After you installed this plugin you press
F1
orCTRL + P
in your .md file and write:Create table of contents
This will create a TOC and everytime you save the document it will be updated automatically!
If you don't want a headline in your TOC navigation add:
<!-- omit in toc -->
directly above the headline.
For more informations read in the plugin description after the installation!
Here's an image what it does:
Screenshot on Imgur
Basically I have normal headlines like:
Now there are problems with it:
For example:
# 2. Markdown
Leadts to:
auto- [2. Markdown](#2-nbspmarkdown)
But should be:
- [2. Markdown](#25-markdown)
This shows a correct navigation on top of the Markdown file and the target url works too.
The text was updated successfully, but these errors were encountered: