prettier-plugin-markdown-html weekly downloads statistics
By porada (3 listings) · npm · Prettier plugins
Format raw HTML in Markdown with Prettier
prettier-plugin-markdown-html has 254 recorded weekly downloads on npm, a decrease of 63.8% over the past 30 days, ranking #2426 of 3,247 tracked listings.
About prettier-plugin-markdown-html
Overview
This plugin adds an extra level of consistency to Markdown files by formatting raw HTML fragments.
- Works with
README.mdand any other GitHub-Flavored Markdown document. - Respects Prettier’s built-in HTML options.
- Comes without any additional dependencies.
Install
npm install --save-dev prettier-plugin-markdown-html
pnpm add --save-dev prettier-plugin-markdown-html
Usage
Reference prettier-plugin-markdown-html in your Prettier config:
{
"plugins": [
"prettier-plugin-markdown-html"
]
}
Options
In addition to Prettier’s built-in options that affect HTML formatting, prettier-plugin-markdown-html offers additional configuration options.
interface PluginOptions {
/**
* Keep the closing bracket on the last attribute line in block-level raw
* HTML fragments in Markdown. Unlike `bracketSameLine`, this option does
* not affect code blocks. Falls back to `bracketSameLine` when unset.
* @default undefined
*/
htmlFragmentBracketSameLine?: boolean | undefined;
/**
* Control formatting of `<script>` and `<style>` contents in raw HTML
* fragments in Markdown. Unlike `embeddedLanguageFormatting`, this option
* does not affect code blocks. Falls back to `embeddedLanguageFormatting`
* when unset.
* @default undefined
*/
htmlFragmentEmbeddedLanguageFormatting?: 'auto' | 'off' | undefined;
/**
* Override the preferred line length for raw HTML fragments in Markdown.
* Unlike `printWidth`, this option does not affect code blocks or other
* Markdown content. Falls back to `printWidth` when unset.
* @default undefined
*/
htmlFragmentPrintWidth?: number | undefined;
/**
* Enforce one HTML attribute per line for raw HTML fragments in Markdown.
* Unlike `singleAttributePerLine`, this option does not affect code blocks.
* Falls back to `singleAttributePerLine` when unset.
* @default undefined
*/
htmlFragmentSingleAttributePerLine?: boolean | undefined;
/**
* Control whitespace handling for raw HTML fragments in Markdown. Unlike
* `htmlWhitespaceSensitivity`, this option does not affect code blocks.
* Falls back to `htmlWhitespaceSensitivity` when unset.
* @default undefined
*/
htmlFragmentWhitespaceSensitivity?: 'css' | 'strict' | 'ignore' | undefined;
}
Related
License
MIT © Dom Porada
Description from the npm listing.
- formatting
- gfm
- github
- github-flavored-markdown
- html
- markdown
- markdown-html
- md
- prettier
- prettier-plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Prettier plugins plugins
All 20 prettier-plugin-markdown-html alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-markdown-html. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.