Skip to content

Export

Bokuchi can export your Markdown document as a styled HTML file that you can open in any web browser, or as a PDF that anyone can view and print.

The exported HTML file includes:

  • Full styling — The rendered Markdown looks the same as in Bokuchi’s preview
  • Syntax highlighting — Code blocks retain their color highlighting
  • Image references — Images are kept as relative paths. Place image files in the same folder structure alongside the exported HTML
  • Expanded variables — All variables are replaced with their actual values
  • Math and diagrams — KaTeX math expressions and Mermaid diagrams are rendered in the exported file
  1. Open the file you want to export
  2. Click the download button in the top-right corner of the preview panel
  3. Choose Export as HTML or Export as PDF from the menu
  4. Choose the save location and file name

The save dialog suggests a file name based on your document’s name — for example, notes.md becomes notes.html or notes.pdf. Unsaved documents use markdown-export as the default name. You can always type a different name before saving.

Download button in the preview panel header for quick HTML export Exported HTML file displayed in a web browser

Choosing Export as PDF saves your document as an A4 PDF — handy for printing or sharing with people who don’t use Bokuchi.

The PDF includes the same content as the HTML export: syntax-highlighted code blocks, expanded variables, KaTeX math, and Mermaid diagrams.

Marp presentations have their own PDF export that saves one slide per page — see Marp Presentations.

Export your Bokuchi settings as a JSON file, or import settings from a file. Useful for syncing your configuration across machines.

Export global variables as a YAML file, or import variables from a YAML file. Useful for sharing variable sets with your team.

  • Variables — Learn about the variable system
  • Settings — Configure Bokuchi to your liking