Install
openclaw skills install @nellyxiaolong-cmyk/md-to-htmlConvert Markdown (.md) files to styled, self-contained HTML pages. Use when the user uploads or mentions a Markdown file and wants to convert it to HTML, view it in a browser, or share it as a formatted web page. Triggers on phrases like "md转html", "markdown转网页", "把md转成html", "markdown to html", "转h
openclaw skills install @nellyxiaolong-cmyk/md-to-htmlConvert Markdown files into standalone HTML pages with clean, responsive styling.
.md files (standard Markdown)| Element | HTML Output |
|---|---|
# H1 – #### H4 | Styled headings with bottom borders |
**bold**, *italic* | <strong>, <em> |
`inline code` | Inline <code> |
\``code blocks```` | <pre><code> with scroll |
| table | | Styled HTML tables with alternating rows |
- list, * list | <ul> |
1. ordered | <ol> |
> quote | Left-border blockquote |
--- | Horizontal rule |
| Paragraphs | Properly spaced <p> |
Get the file path from the user or workspace context.
Execute the bundled Python script:
python3 scripts/md2html.py <input.md> [output.html]
If output.html is omitted, the script defaults to <input>.html in the same directory.
Tell the user:
The generated HTML includes embedded CSS with:
<a> tags)The conversion logic lives in scripts/md2html.py. It is a pure-Python script with no external dependencies beyond the standard library (re, html, sys, os).