Cn Markdown To Html

Convert Markdown to HTML with basic styling. Support headers, bold, italic, links, code blocks. Pure Python standard library, no API key required.

Audits

Pass

Install

openclaw skills install cn-markdown-to-html

Markdown to HTML

Convert Markdown files to HTML.

Features

  • Convert headers (H1, H2, H3)
  • Format bold and italic text
  • Convert links
  • Format inline and block code
  • Generate complete HTML document
  • Pure Python, no external dependencies

Supported Markdown Elements

MarkdownHTML
# Header<h1>
## Header<h2>
### Header<h3>
bold<strong>bold</strong>
italic<em>italic</em>
code<code>code</code>
text<a href="url">text</a>

Usage

python3 scripts/md_to_html.py --file readme.md

Example

Input (readme.md):

# My Project

This is **bold** and *italic* text.

[Visit example.com](https://example.com)

Output: Complete HTML document with proper formatting.