The python markdown extension supports YAML-like frontmatter for storing meta-data in markdown documents (ref). I just encountered this with pelican, which unfortunately doesn't support YAML frontmatter (which vim-markdown-folding does seem to work with).
Having the metadata tags at the start of the document is just like YAML, but without the dashes:
Title: Dangit
slug: vim-markdown-folding-is-awesome
Date: 2015-02-10
Author: @nfarrar
## It broke
:(
Any chance it'd be possible to add support? It is the primary python markdown library. :)
EDIT: I did finally get YAML frontmatter implimented and after using it for a bit - I realized that while it doesn't completely break vim-markdown-folding, it creates a fold in the middle of the YAML front matter. For example:
---
Title: Its Going Down
Date: 2015-02-10
Status: Published
---
will fold to:
---
Title: Its Going Down
Date: 2015-02-10
## Status: Published [# lines] ---------------------------------------
The python markdown extension supports YAML-like frontmatter for storing meta-data in markdown documents (ref). I just encountered this with pelican, which unfortunately doesn't support YAML frontmatter (which vim-markdown-folding does seem to work with).
Having the metadata tags at the start of the document is just like YAML, but without the dashes:
Any chance it'd be possible to add support? It is the primary python markdown library. :)
EDIT: I did finally get YAML frontmatter implimented and after using it for a bit - I realized that while it doesn't completely break vim-markdown-folding, it creates a fold in the middle of the YAML front matter. For example:
will fold to: