Skip to main content
在 Manus 中运行任何 Skill
一键导入

spec-html-to-mdx

星标0
分支0
更新时间2026年5月28日 00:50

Convert an ecmarkup-rendered HTML spec (e.g. tc39/ecma262 spec.html) into per-chapter MDX pages in a Nextra v4 documentation site. Splits at top-level <emu-intro>/<emu-clause>/<emu-annex>, recurses into nested clauses to lift their headings out as numbered markdown headings, embeds each section's HTML body via dangerouslySetInnerHTML (sidestepping JSX parsing of unbalanced ecmarkup tags), and expands ecmarkup's build-time constructs (<emu-xref>, <emu-prodref>, <emu-grammar>, <emu-alg>, and Markdown-style inline markup like _x_/*foo*/|Foo|) into rendered HTML so the page is readable without ecmarkup's own runtime. Use when the user asks to render a single-file ecmarkup spec as browsable chapter pages.

安装

用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。

文件资源管理器
5 个文件
SKILL.md
readonly