.config/nvim/after/ftplugin/markdown.vim@34bf03fa07e4
.config/nvim/after/ftplugin/markdown.vim
Thu, 16 May 2024 14:37:26 -0500
- author
- Meredith Howard <mhoward@roomag.org>
- date
- Thu, 16 May 2024 14:37:26 -0500
- changeset 1166
- 34bf03fa07e4
- parent 1163
-
40367220022e
- permissions
- -rw-r--r--
normalize config.util.autocmd
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