Summary
将 Markdown 转为带「文艺复兴」排版的完整 HTML 文档字符串(与 WeChatMarkdownRenderer 的 themes.ts 中 renaissance 主题一致)。用户提到 md 转 html、Markdown 排版、文艺复兴风格、古典/棕金配色、两端对齐长文、公众号式 HTML、导出静态…
shadowcz007/skills
将 Markdown 转为带「文艺复?
npx skills add shadowcz007/skills --skill renaissance-md-html
将 Markdown 转为带「文艺复兴」排版的完整 HTML 文档字符串(与 WeChatMarkdownRenderer 的 themes.ts 中 renaissance 主题一致)。用户提到 md 转 html、Markdown 排版、文艺复兴风格、古典/棕金配色、两端对齐长文、公众号式 HTML、导出静态…
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Software architecture and UI/UX principles for building genuinely new solutions, not derivative…
2.8K installsBuild trading systems in the style of Renaissance Technologies, the most successful quantitativ…
112 installsOther skills from shadowcz007/skills · top by installs.
npx skills add shadowcz007/skills
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Parsed from SKILL.md frontmatter.
Files included with this skill beyond the listing page.
SKILL.md
2,753 B
SUMMARY.md
435 B
.md 文件路径)。<!DOCTYPE html>、内联 CSS),正文包在 <article class="wmr-renaissance"> 内。assets/renaissance.css,与仓库 src/themes.ts 的 renaissanceStyles 对齐。在 skill 目录下执行(将 <SKILL_DIR> 换为本 skill 根路径,即含 SKILL.md 的目录):
cd <SKILL_DIR>
# 若首次使用:
npm install
从标准输入传入 Markdown:
printf '%s' "$MARKDOWN_STRING" | node scripts/md_to_renaissance_html.mjs --title "页面标题"
从文件读取:
node scripts/md_to_renaissance_html.mjs --input /path/to/article.md --title "页面标题"
脚本向 stdout 打印最终 HTML;将输出保存到变量或文件交给用户即可。
| 参数 | 说明 |
|---|---|
--input <path> |
读取 Markdown 文件(与 stdin 二选一;若同时存在,以 --input 为准) |
--title <text> |
<title> 与浏览器标签页标题,默认 Document |
--no-embed-images |
关闭图片 base64 内嵌(默认开启) |
--no-copy-button |
关闭“一键复制全文(富文本)”按钮(默认开启) |
assets/renaissance.css 为准。.cursor/skills/renaissance-md-html/(相对仓库根目录)。node_modules 不存在,先在该目录执行 npm install。<article>...</article> 或仅内部 HTML(需说明截取后无全局 <style> 时需保留内联或外链 CSS)。--no-embed-images 或 --no-copy-button。marked(见 package.json,用于 GFM:表格、删除线等)