alanwalk / markdown-toc

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

Setext-style headers are not recognized #12

Open TimsManter opened 7 years ago

TimsManter commented 7 years ago

Just look at First header:

Title
=====
<!-- TOC  -->

- [Second](#second)

<!-- /TOC -->

First
-----

### Second
Title
=====
<!-- TOC -->

- [First](#first)
    - [Second](#second)

<!-- /TOC -->

## First

### Second

After TOC update setext-style is not recognized but atx-style works as expected. This is very inconvenient for me as all my notes use setex-style.

Really good extension by the way :).

alanwalk commented 7 years ago

Recognized title and ignore other grammar, it 's troublesome, I need a lot's time. Thank you for your issues.