.config/nvim/after/ftplugin/markdown.vim@308dce5084af
.config/nvim/after/ftplugin/markdown.vim
Mon, 20 Jan 2025 01:01:48 -0600
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Mon, 20 Jan 2025 01:01:48 -0600
- changeset 1180
- 308dce5084af
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
start switching to mise-en-place
runtime ftplugin/text.vim
if !exists('b:markdown_autohtml')
let b:markdown_autohtml = 0
endif
function! s:autohtml() abort
if get(b:, 'markdown_autohtml', 0)
silent !md2html -o "%:p.html" "%:p"
endif
endfunction
augroup Markdown
autocmd!
autocmd BufWritePost <buffer> call s:autohtml()
augroup END