prettier-markdown
JSON →Prettier is a popular code formatter, but it does not format JavaScript code embedded in Markdown files out of the box. prettier-markdown fills this gap by parsing Markdown files, extracting JavaScript code blocks, applying Prettier formatting, and writing the formatted code back into the Markdown. Version 0.1.8 is the latest stable release, but development appears to be dormant (last commit years ago). It provides both a CLI (with short command `pmd`) and a programmatic API returning Promises or using callbacks. Alternative tools include `prettier-plugin-md` (Prettier plugin) or `markdown-magic-prettier`, but this package offers a standalone solution.
Traffic · last 30 days ↓81% vs prev 7d
total hits 43
actors 9 distinct systems
last hit 1d ago ByteDance
top countries 🇨🇦 Canada · 🇺🇸 United States · 🇫🇷 France · 🇸🇬 Singapore · 🇮🇳 India
Resources
API endpoints
full doc /v1/registry/prettier-markdown
compatibility /v1/registry/prettier-markdown/compatibility