Markdown to HTML Converter
name: markdown-to-html
by claudiodrusus · published 2026-03-22
$ claw add gh:claudiodrusus/claudiodrusus-markdown-to-html---
name: markdown-to-html
description: Convert Markdown text to beautifully styled, self-contained HTML with embedded CSS. Perfect for newsletters, documentation, reports, and email templates.
triggers:
- convert markdown to html
- markdown to html
- render markdown
- style markdown
---
# Markdown to HTML Converter
A zero-dependency Python tool that converts Markdown files into beautiful, self-contained HTML documents with embedded CSS styling. No external libraries needed — uses only Python's standard library.
Features
Usage Examples
Convert a file with the default light theme:
python main.py README.md -o readme.htmlUse the dark theme for a presentation:
python main.py notes.md -o notes.html --theme dark --title "Meeting Notes"Pipe from another command:
cat CHANGELOG.md | python main.py - -o changelog.htmlUse in a newsletter pipeline:
python main.py issue-42.md --title "Lobster Diary #42" -o issue.htmlSupported Markdown Elements
| Element | Syntax | Supported |
|---------|--------|-----------|
| Headings | `# H1` through `###### H6` | ✅ |
| Bold | `**text**` | ✅ |
| Italic | `*text*` | ✅ |
| Strikethrough | `~~text~~` | ✅ |
| Links | `[text](url)` | ✅ |
| Images | `` | ✅ |
| Code blocks | Triple backtick with language | ✅ |
| Inline code | Single backtick | ✅ |
| Blockquotes | `> text` | ✅ |
| Unordered lists | `- item` or `* item` | ✅ |
| Ordered lists | `1. item` | ✅ |
| Horizontal rules | `---` | ✅ |
Command Line Options
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...