Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VimwikiTOC treats # comment lines in code blocks as headlines #191

Closed
lecagot opened this issue Feb 10, 2016 · 1 comment
Closed

VimwikiTOC treats # comment lines in code blocks as headlines #191

lecagot opened this issue Feb 10, 2016 · 1 comment
Labels

Comments

@lecagot
Copy link

lecagot commented Feb 10, 2016

Versions
  • vim 7.4
  • vimwiki v2.2.1 and 5f9dbca on dev branch
Bug description

:VimwikiTOC treats comment lines in code blocks as headlines.

Steps to reproduce
  1. create comment block (in ~~~ environment)
# list files
$ ls
  1. create TOC with :VimwikiTOC
Actual behaviour
# Contents
    - [[#tricks|tricks]]
    - [[#list files|list files]]
Expected behaviour
# Contents
    - [[#tricks|tricks]]
@EinfachToll
Copy link
Member

Should work now. Of course only if you use Vimwiki's syntax for code blocks correctly, that is, using backticks, not ~~~ (in Markdown. In the default syntax, it's {{{. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants