This Obsidian community plugin allows you to export the content of a note as HTML, either to the clipboard or to a new HTML file.
During the export, images will be copied over in base 64 format.
This plugin is a work in progress but it already works great in most cases. Some edge cases with inline image exports will be improved.
Obsidian mobile apps are not yet supported.
Follow the steps below to install Obsidian Export to HTML.
- Search for Export to HTML in Obsidian's community plugins browser
- Enable the plugin in your Obsidian settings (find Export to HTML under Community plugins).
- (Optional) If you plan to use it often, in the Hotkeys settings, search for Export to HTML and bind actions to keyboard shortcuts.
Open the command palette (press CTRL+P if you use a keyboard) and type Export to HTML.
- Select Export to HTML: Copy to clipboard as HTML to copy your note as HTML in your clipboard. You can then paste it in an email or in a Word document and the style will be kept.
- Select Export to HTML: Download as HTML to download your note as an HTML file.
- Download the latest release and unzip it.
- Copy over
main.js
,manifest.json
to your vaultVaultFolder/.obsidian/plugins/export-to-html/
.
- Clone this repo.
- Make sure you use Node version 16 or above (
node --version
). npm install
to install dependencies.npm run dev
to start compilation in watch mode.
- Starter template: Obsidian sample plugin
- CSS: Github Markdown CSS