alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

TOC created with tab indent #3

Closed huygn closed 8 years ago

huygn commented 8 years ago

Currently it creates a code block (due to tab indent):

- [Table of Contents](#table-of-contents)
- [Jenkins Pipeline](#jenkins-pipeline)
- [AWS EC2](#aws-ec2)
- [MySQL container](#mysql-container)
<!-- TOC -->

    - [Table of Contents](#table-of-contents)
    - [Jenkins Pipeline](#jenkins-pipeline)
    - [AWS EC2](#aws-ec2)
    - [MySQL container](#mysql-container)

<!-- /TOC -->

Instead of:

alanwalk commented 8 years ago

I will fix it as soon as possible, thank you!

alanwalk commented 8 years ago

Do you want to add tab indent for your toc list?

huygn commented 8 years ago

Nope, toc list should not be indented at all.

huygn commented 8 years ago

Oh, of course except for nested items, which can be either 4 spaces/1 tab i think. Just the initial tab indent that force the TOC to be rendered as code block instead of actual list items.

alanwalk commented 8 years ago

Hi, I had updated the extension, you can update to latest version.

huygn commented 8 years ago

Thanks, it works great!