Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown to Statically-Linked HTMLNew to Visual Studio Code? Get it now.
Markdown to Statically-Linked HTML

Markdown to Statically-Linked HTML

Jackson Kearl

|
2,151 installs
| (1) | Free
Convert md to single html file with data-uri embedded references
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Convert a Markdown Document to HTMl

Convert markdown documents to HTML files that can be opened or transfererred as single files, no need for a web server or bundling a whole directory.

Usage

First, open a .md file that with relative references to images in the form:

A png:
![A screenshot](https://github.com/JacksonKearl/md-to-html/raw/HEAD/png.png) # the image is located at png.png, in the same directory as the markdown file

A gif:
![A screen recording](https://github.com/JacksonKearl/md-to-html/raw/HEAD/media/gif.gif) # the image gif.gif is in a `media` directory along side the markdown file

A jpeg:
![An image](https://github.com/JacksonKearl/md-to-html/raw/HEAD/jpeg.jpeg)

Note the images must be in your workspace, http links will not be included.

Then, run the command MD to HTML: Convert Document to HTML from either the command paalette or the editor action bar: image showing location of editor action bar

An HTML document will be created alongside the markdown file. This can be sent to anyone as a single and opened without bundling the images alongside or starting up a web server.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft