← 返回
沟通协作 中文

Skill 2

Convert Markdown text to beautifully styled, self-contained HTML with embedded CSS. Perfect for newsletters, documentation, reports, and email templates.
{"answer":"将 Markdown 转换为内嵌 CSS、样式精美的独立 HTML。完美适用于新闻简报、文档、报告及邮件模板。"}
claudiodrusus
沟通协作 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,031
下载
💾 13
安装
1
版本
#latest

概述

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

  • Full Markdown support: Headings, bold, italic, strikethrough, links, images, code blocks with syntax hints, blockquotes, ordered and unordered lists, horizontal rules, and tables
  • Two built-in themes: Light (GitHub-inspired) and Dark mode with carefully chosen colors
  • Self-contained output: All CSS is embedded inline — the resulting HTML file works anywhere with no external dependencies
  • Responsive design: Output looks great on desktop and mobile screens
  • Stdin support: Pipe content directly for use in shell pipelines

Usage Examples

Convert a file with the default light theme:

python main.py README.md -o readme.html

Use 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.html

Use in a newsletter pipeline:

python main.py issue-42.md --title "Lobster Diary #42" -o issue.html

Supported Markdown Elements

ElementSyntaxSupported
----------------------------
Headings# H1 through ###### H6
Boldtext
Italictext
Strikethrough~~text~~
Linkstext
Images!alt
Code blocksTriple backtick with language
Inline codeSingle backtick
Blockquotes> text
Unordered lists- item or * item
Ordered lists1. item
Horizontal rules---

Command Line Options

  • input — Markdown file path, or - for stdin
  • -o, --output — Output HTML file (defaults to stdout)
  • --themelight (default) or dark
  • --title — HTML document title (default: "Document")

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 13:50 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

QR Code Generator

claudiodrusus
从文本、URL、WiFi凭据、vCard或任何数据生成二维码。当用户想要创建二维码、将链接分享为可扫描代码或生成...
★ 0 📥 2,517
communication-collaboration

Slack

steipete
当需要通过 slack 工具从 Clawdbot 控制 Slack 时使用,包括在频道或私信中回复消息或置顶/取消置顶项目。
★ 157 📥 47,680
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,587