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
613 stars 59 forks source link

Add tests for Marked style toc. #50

Closed bdgong closed 6 years ago

bdgong commented 6 years ago

I read part of the source code of markdown-preview and marked.js, then I modified the regex for Marked style ToC.

And , I try to write test cases to test.vim, but there is always errors(I guess the way to execute is :source test.vim, if it's not please tell me ^_^). At last, I write another sample file Marked.md instead.

mzlogin commented 6 years ago

Yes the right way to execute test case is :source test.vim.

I'll review your PR later.

mzlogin commented 6 years ago

OK, thanks for your PR.

I'll update the test.vim file. There is a issue in Marked.md file, toc link for header 2.4 is not right.