This skill combines the best parts of two separate tools:
scripts/pretty_markdown_to_html.py for better-looking Markdown to HTML outputscripts/html_to_markdown.mjs for stronger HTML to Markdown conversion, URL fetching, cleanup profiles, metadata, and reportsscripts/markdown_to_html.mjs as an optional Node-based Markdown to HTML fallback when batch directory conversion or theme switching is more important than final polishUse this skill when the task is any of the following:
Use the Python renderer first when visual output quality matters most.
python scripts/pretty_markdown_to_html.py input.md -o output.html --theme light --title "Document"
Use this for:
Why this is the default:
Use the Node pipeline first for HTML extraction and cleanup.
node scripts/html_to_markdown.mjs \
--url "https://example.com/article" \
--out ./article.md \
--profile article \
--engine best \
--meta-frontmatter true \
--report ./article.report.json
Use this for:
Read references/profiles.md when choosing article, docs, forum, or custom.
Use the Node renderer when you need directory batch conversion or its built-in themes.
node scripts/markdown_to_html.mjs \
--file ./README.md \
--out ./README.html \
--theme github
Use it when:
github or minimal theme is specifically desiredDo not make this the first choice when the user explicitly cares most about frontend presentation quality.
pretty_markdown_to_html.pyhtml_to_markdown.mjs --profile articlehtml_to_markdown.mjs --profile docsmarkdown_to_html.mjs --input-dir ... --output-dir ...scripts/pretty_markdown_to_html.pyscripts/html_to_markdown.mjsscripts/markdown_to_html.mjsreferences/profiles.mdpackage.jsonThe Node scripts depend on packages listed in package.json.
If dependencies are not installed yet, run:
npm install
from the skill directory before using the Node scripts.
The Python renderer uses only the standard library and needs no extra dependencies.
For the exact kind of comparison where the same AI news markdown was rendered two ways, prefer:
pretty_markdown_to_html.pyhtml_to_markdown.mjsThat gives the stronger visual result in one direction and the stronger cleanup/extraction result in the other.
共 1 个版本