This repo contains custom Typora themes and a post-processing script to export Markdown as HTML that looks the same on webpages as in Typora.
- academic.css — Modified version of the public Academic theme
- note.css — Template used to generate articles for my website
- Export HTML from Typora: File → Export → HTML
- Post-process the exported HTML using one of:
-
Option A: Right-click context menu
- Edit
install-context-menu.regand update the path toconvert-to-note-html.py - Double-click
install-context-menu.regto register the menu entry - Right-click the
.htmlfile → Convert to Note HTML - To remove: double-click
uninstall-context-menu.reg
The registry entry points to the script path, so changes to
convert-to-note-html.pytake effect immediately. Only re-run the.regif the script path or Python path changes. - Edit
-
Option B: Custom export in Typora
- Open File → Preferences → Export → HTML
- Under "Run custom command after export", set to:
python "path/to/convert-to-note-html.py" "${outputPath}" - Now File → Export → HTML will automatically post-process the output
-