Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.25 KB

html.md

File metadata and controls

50 lines (33 loc) · 1.25 KB

HTML Export

Usage

Right click at the preview, click HTML tab.
Then choose:

  • HTML (offline) Choose this option if you are only going to use this html file locally.
  • HTML (cdn hosted) Choose this option if you want to deploy your html file remotely.

screen shot 2017-07-14 at 1 14 28 am

Configuration

Default values:

---
html:
  embed_local_images: false
  embed_svg: true
  offline: false
  toc: undefined

print_background: false
---

If embed_local_images is set to true, then all local images will be embedded as base64 format.

To generate sidebar TOC you need to set enableScriptExecution in MPE settings of vscode or atom.

If toc is set to false, then the sidebar TOC will be disabled. If toc is set to true, then the sidebar TOC will be enabled and displayed. If toc is not specified, then the sidebar TOC will be enabled, but not displayed.

Export on save

Add the front-matter like below:

---
export_on_save:
  html: true
---

So the html file will be generated every time you save your markdown file.