You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In vim-header when editing markdown files the header automatically uses a code block.
I never saw this type of header in markdown files. Is there a reason for it?
I think it is more common to have a yaml front matter as e.g. used by Hugo.
At least this should be optional I think. This would also only need a minimal change to your code.
Proposals
Change the comment string from code block to yaml in autoload/header.vim, i.e. use ---.
If the code block header is a general default (I don't know about) we can at least make the yaml frontmatter optional by introducing a new variable
; toggle front matter format as yaml
letg:header_markdown_yaml_format=1
Description
In
vim-header
when editing markdown files the header automatically uses a code block.I never saw this type of header in markdown files. Is there a reason for it?
I think it is more common to have a
yaml
front matter as e.g. used by Hugo.At least this should be optional I think. This would also only need a minimal change to your code.
Proposals
Change the comment string from code block to yaml in
autoload/header.vim
, i.e. use---
.If the code block header is a general default (I don't know about) we can at least make the yaml frontmatter optional by introducing a new variable
then in
autoload/header.vim
we set the defaultand only add to the markdown
elseif
after the default stuffThe changes to your code are minimal to support
yaml
front matterBottom Line
I currently use my 1. proposal locally, but would also be willing to implement the 2. one.
Let me know what you think / prefer.
The text was updated successfully, but these errors were encountered: