Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @pixelastic/markdown-preview with all npm packages installed. Try it out:

@pixelastic/markdown-preview lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("@pixelastic/markdown-preview/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@pixelastic/markdown-preview v0.0.11

Convert a markdown file to HTML and display it in a webpage similar to GitHub


Renders a preview of a markdown text in your browser.


$ markdown-preview ./



Install globally with yarn global add @pixelastic/markdown-preview

Integration with vim

I've added the following mapping to my after/ftplugin/markdown.vim to see a preview when I press F5.

nnoremap <silent> <buffer> <F5> :call MarkdownPreview()<CR>
function! MarkdownPreview()
  silent execute ':!nohup markdown-preview % &>/dev/null &'


  • Uses a hard-coded /tmp/ to store the HTML file
  • Uses a hard-coded google-chrome to open the file
  • Does not handle local images
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free