This is an extremely small and lightweight NeoVim plugin to convert a Markdown document into simple HTML.
Screen.Recording.2022-09-16.at.9.42.09.AM.mov
NeoVim >= 0.5
Everything is coded in pure Lua. There are absolutely no heavy dependencies like Pandoc to download and set up. That means you can install this plugin like you would any other plugin. Here are examples for the two most common plugin managers.
Vim-Plug:
Plug 'realprogrammersusevim/md-to-html.nvim', { 'on': 'MarkdownToHTML', 'NewMarkdownToHTML' }
Packer:
use {
'realprogrammersusevim/md-to-html.nvim',
cmd = { 'MarkdownToHTML', 'NewMarkdownToHTML' },
}
Lazy.nvim
{
'realprogrammersusevim/md-to-html.nvim',
cmd = { 'MarkdownToHTML', 'NewMarkdownToHTML' },
}
Currently this plugin only has two commands. :MarkdownToHTML
converts the
current buffer in place and :NewMarkdownToHTML
which creates a new file with
the same name but converted to HTML instead of Markdown. As of yet, there are no
configuration options.