Convert a markdown file to HTML and display it in a webpage similar to GitHub
npm install @pixelastic/markdown-previewRenders a preview of a markdown text in your browser.
``sh`
$ markdown-preview ./readme.md
Install globally with yarn global add @pixelastic/markdown-preview
I've added the following mapping to my after/ftplugin/markdown.vim to seeF5
a preview when I press .
`vim`
nnoremap
function! MarkdownPreview()
silent execute ':!nohup markdown-preview % &>/dev/null &'
redraw!
endfunction
- Uses a hard-coded /tmp/ to store the HTML filegoogle-chrome` to open the file
- Uses a hard-coded
- Does not handle local images