Markdown to HTML Converter
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_bbc7674c/markdown-2-html.
About this skill
What problem it solves
When Markdown needs to become a web page, plain conversion often lacks code highlighting, theme adaptation, and mobile reading comfort. markdown-2-html does not only wrap tags; it turns example.md into a standalone example.html that makes technical notes, API docs, and code samples readable directly in a browser.
How it works
The skill organizes conversion around single-file HTML output. Its core script accepts a Markdown input path, with optional output path and page title:
- It parses common Markdown syntax such as headings, lists, links, images, blockquotes, and tables.
- It generates syntax-highlighted styles for bash, python, javascript, json, html, and css code blocks.
- It injects light and dark mode styles so the page follows the system theme.
- It uses a professional monospace font stack, language labels, and horizontal scrolling to improve code readability.
- It constrains desktop width and adapts mobile margins for clearer Chinese typography.
Boundaries
It fits lightweight publishing, sharing, or quick layout validation of static Markdown documents. The generated HTML is a self-contained single file, while image links still depend on original URLs or relative paths. Missing language markers on code blocks may limit highlighting.
Use Cases
- Convert API notes in Markdown into a standalone HTML page so teammates can view request examples and response structures.
- Turn technical notes with Python and Bash examples into a web page and check code highlighting and horizontal scrolling.
- Generate a single-file HTML preview before publishing API docs to verify headings, tables, and Chinese typography.
- Convert a Markdown project guide into a shareable page with automatic light and dark themes.
Best For
- Documentation engineers who need a quick standalone HTML preview from Markdown guides.
- Tutorial writers who want code blocks with language labels and syntax highlighting.
- Internal knowledge-base operators who need published pages with light/dark themes and mobile readability.
- Product engineers preparing shared materials who need offline single-file HTML pages from Markdown notes.
Related Skills
Runs rule and semantic checks on Word files, adds comments, and applies GB/T 9704-2012 party/government formatting.
Generate professional .pptx presentations from a topic or outline, with themes, common layouts, speaker notes, and 16:9/4:3 support.
Generates a fixed-structure A-share tech daily across five tracks, screening 24-hour news and selecting leader and growth stocks.
Convert teaching schedules from talent development plan PDFs into structured Excel files, with cross-page tables, merged cells, multi-semester course splitting, major metadata extraction, and batch output.