-
Notifications
You must be signed in to change notification settings - Fork 43
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
Option to turn of folding for headline tags mark with --- #3
Comments
If the vim-markdown syntax highlighting could identify the YAML front matter, then this problem would be easy to fix. It doesn't just now, but @PProvost's vim-markdown-jekyll plugin adds this functionality. |
So, I just tried installing vim-markdown-jekyll, and it doesn't play nicely with some features in vim-markdown. Specifically, the jekyll plugin overrides the handling of fenced code blocks in markdown. The vim-markdown-folding plugin dependes on recognising fenced code blocks to solve issue 1. |
I see. I watched into the jekyll file https://github.com/PProvost/vim-markdown-jekyll/blob/master/after/syntax/markdown.vim and found this:
What we need is a function like checkJekyllFrontMatter() which does the job in your script. Since you have tests, I may try to build it as a training for myself. What do you think? |
Knock yourself out! I wrote a test already. Check out the jekyll-front-matter branch. |
Wow, very fast indeed. |
So to fix this issue I should switch to the |
Hi Drew, I have thought about the problem and it isn't a problem anymore. Every time I'm editing a blog post with a YAML front matter I am unfolding the whole markdown file to have an overall feeling of the document. What help me more was detecting the YAML front matter information at the beginning of a document as a comment with the following line in my vimrc:
If you agree with me, I will close this issue. Thanks for your help so far. |
That's an interesting workaround! Leave the issue open for now. You're not the only person who wants this, so it makes sense to provide some solution in this plugin. |
I will track this issue further on. |
Cool workaround @matthias-guenther! I'll be using it. :) |
Hi Drew I really love your plugin and I'm using it on my daily basis for writing articles in markdown. Since I'm using Jekyll for running my blog, I'm also using the YAML settings at the beginning of each markdown file.
If you have problems with following the example above, please consult the example below:
Cheers
Matthias
The text was updated successfully, but these errors were encountered: