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

Ignore comments in blocks of code #146

Closed tapia closed 4 years ago

tapia commented 4 years ago

If you write some markdown like this:

```python
# some comment
```

The comment is correctly ignored. But this is also valid markdown, and the comment is wrongly interpreted as a title:

~~~python
# some comment
~~~
naokazuterada commented 4 years ago

This problem should be fixed in 4.0.1.