naokazuterada / MarkdownTOC

SublimeText3 plugin which generate a table of contents (TOC) in a markdown document.
https://packagecontrol.io/packages/MarkdownTOC
MIT License
301 stars 48 forks source link

Fix indent errors #66

Closed YingmingHu closed 8 years ago

YingmingHu commented 8 years ago

Use 4 SPACE as indent prefix since sometimes TAB will be replaced by 2 SPACE rather than 4 SPACE, that will cause some markdown interpreters treat the different levels list as a same one.

e.g. ,

Expect:

- h1
    -- h2

But returns:

- h1
  -- h2

This change is Reviewable

naokazuterada commented 8 years ago

Thank you for your PR!!

1.8.0 has been released instead of your fix because it makes impact on other people.

Please upgrade and set default_indent in your MarkdownTOC.sublime-settings.

YingmingHu commented 8 years ago

OK, I found this new feature. Thanks for this great package.