mzlogin / vim-markdown-toc

A vim 7.4+ plugin to generate table of contents for Markdown files.
http://www.vim.org/scripts/script.php?script_id=5460
MIT License
609 stars 59 forks source link

Wrong parsing in comment #69

Closed KyleJeong closed 4 years ago

KyleJeong commented 4 years ago

I made this kind of python syntax highlighting codes in a markdown file.

Then this plugin thinks that the "# mod1.py" is a heading level 1. Can you skip that kind of syntax highlighting blocks?

# mod1.py
def add(a, b):
    return a + b

def sub(a, b):
    return a - b
mzlogin commented 4 years ago

OK, I'll look at it later.

Before this plugin is updated, you can use this kind of syntax as a workaround:

```python
print('hello')
KyleJeong commented 4 years ago

back-quote is working. Thank you for the quick feedback.

mzlogin commented 4 years ago

Fixed! You can try ~~~ syntax now.