返回顶部
m

markdown-to-htmlMarkdown转HTML

Convert Markdown text to beautifully styled, self-contained HTML with embedded CSS. Perfect for newsletters, documentation, reports, and email templates.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.1.0
安全检测
已通过
1,195
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

markdown-to-html

技能名称: markdown-to-html
详细描述:

Markdown 转 HTML 转换器

一个零依赖的 Python 工具,可将 Markdown 文件转换为美观、自包含的 HTML 文档,并内嵌 CSS 样式。无需外部库——仅使用 Python 标准库。

功能特性

  • - 完整的 Markdown 支持:标题、粗体、斜体、删除线、链接、图片、带语法提示的代码块、引用、有序和无序列表、水平分割线以及表格
  • 两种内置主题:浅色(受 GitHub 启发)和深色模式,配色精心挑选
  • 自包含输出:所有 CSS 内联嵌入——生成的 HTML 文件可在任何地方使用,无需外部依赖
  • 响应式设计:输出在桌面和移动屏幕上均显示良好
  • 标准输入支持:可直接通过管道传递内容,用于 Shell 管道操作

使用示例

使用默认浅色主题转换文件:
bash
python main.py README.md -o readme.html

为演示使用深色主题:
bash
python main.py notes.md -o notes.html --theme dark --title 会议笔记

从其他命令通过管道输入:
bash
cat CHANGELOG.md | python main.py - -o changelog.html

在新闻简报流程中使用:
bash
python main.py issue-42.md --title 龙虾日记 #42 -o issue.html

支持的 Markdown 元素

元素语法支持情况
标题# H1 至 ###### H6
粗体
文本 | ✅ | | 斜体 | 文本 | ✅ | | 删除线 | ~~文本~~ | ✅ | | 链接 | 文本 | ✅ | | 图片 | 替代文本 | ✅ | | 代码块 | 三重反引号加语言标识 | ✅ | | 行内代码 | 单个反引号 | ✅ | | 引用 | > 文本 | ✅ | | 无序列表 | - 项目 或 * 项目 | ✅ | | 有序列表 | 1. 项目 | ✅ | | 水平分割线 | --- | ✅ |

命令行选项

  • - input — Markdown 文件路径,或使用 - 表示标准输入
  • -o, --output — 输出 HTML 文件(默认为标准输出)
  • --theme — light(默认)或 dark
  • --title — HTML 文档标题(默认:Document)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 markdown-to-html-1776420074 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 markdown-to-html-1776420074 技能

通过命令行安装

skillhub install markdown-to-html-1776420074

下载

⬇ 下载 markdown-to-html v1.1.0(免费)

文件大小: 3.85 KB | 发布时间: 2026-4-17 18:14

v1.1.0 最新 2026-4-17 18:14
No visible changes in this release.

- Version bumped to 1.1.0.
- No updates detected in documentation or files.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部