https://github.com/blotspot/obsidian-markdown2html
Copy Markdown to HTML
https://github.com/blotspot/obsidian-markdown2html
markdown-to-html obsidian-md-plugin obsidian-plugin
Last synced: 6 months ago
JSON representation
Copy Markdown to HTML
- Host: GitHub
- URL: https://github.com/blotspot/obsidian-markdown2html
- Owner: blotspot
- License: gpl-3.0
- Created: 2024-12-30T16:26:38.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2026-02-02T17:22:43.000Z (6 months ago)
- Last Synced: 2026-02-03T07:33:41.700Z (6 months ago)
- Topics: markdown-to-html, obsidian-md-plugin, obsidian-plugin
- Language: TypeScript
- Homepage:
- Size: 115 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Obsidian Markdown to HTML Plugin
A simple [Obsidian](https://obsidian.md) plugin to copy notes as HTML to the clipboard.
## What it does
1. Converts the Markdown content of a note to HTML (either selected text or entire document) using Obsidian's markdown renderer.
1. Cleans up the HTML from the clutter obsidian likes to add
- Removes all atrributes from tags (a list of attributes to keep can be configured in the settings)
- Removes all classes (a list of classes to keep can be configured in the settings)
- Converts internal images into base64 strings
- Removes empty paragraphs (left overs from Comment blocks, for example)
1. Saves the resulting HTML to the clipboard.
> [!NOTE]
> This plugin doesn't generate a full HTML page and I don't intend to add that feature
## Tested on
- Desktop (Windows)
- iOS
- Android
> [!TIP]
> **On Android:**
> Paste contents through the context menu of the text field and not through the keyboard copy option, since that method doesn't cut off the string after a certain amount of characters.
## Installation
### From Github
1. Download the latest release from the [releases page](https://github.com/blotspot/obsidian-markdown2html/releases).
2. Unzip the downloaded file.
3. Copy the folder to your Obsidian plugins directory (usually located at `.obsidian/plugins`).
4. Enable the "Copy Markdown to HTML" plugin from the Settings > Community Plugins menu in Obsidian.
### As beta plugin (using BRAT)
1. Install [BRAT](https://github.com/TfTHacker/obsidian42-brat) from the Community Plugins in Obsidian.
1. Open the command palette and run the command `BRAT: Add a beta plugin for testing`
1. Copy the project link (https://github.com/blotspot/obsidian-markdown2html) into the modal that opens up.
1. Make sure **Enable after installing the plugin** is checked
1. Click on **Add Plugin**
#### Updating
Beta plugins can be updated using the command palette by running the command `Check for updates to all beta plugins and UPDATE`. Optionally, beta plugins can be configured to auto-update when starting Obsidian. This feature can be enabled in the BRAT plugin settings tab.
## Usage
1. Open the command palette (default is `Ctrl+P` or `Cmd+P`) and search for **"markdown2html"**.
2. Select **Copy selection or document to clipboard** to save your current selection, or if nothing is selected, the full file to the clipboard.
## API Documentation
- Obsidian: https://github.com/obsidianmd/obsidian-api