Skip to content
PluginStats

prettier-plugin-markdown-replacements weekly downloads statistics

By cudoment (2 listings) · npm · Prettier plugins

Prettier plugin that applies configured text replacements to Markdown/MDX prose, leaving code spans, code blocks and MDX comments untouched.

View on npm Fresh · Dec 6, 2026

prettier-plugin-markdown-replacements has 14 recorded weekly downloads on npm, an increase of 75.0% over the past 30 days, ranking #3061 of 3,247 tracked listings.

Weekly downloads
14
Official API · Dec 5, 2026
7-day growth
+27.3%
+3 weekly downloads
30-day growth
+75.0%
+6 weekly downloads
90-day growth
-60.0%
-21 weekly downloads
Rank
#3061
▼ 126 in 7 days

About prettier-plugin-markdown-replacements

prettier-plugin-markdown-replacements

CI npm License: MIT Prettier 3.5+ Node.js 18+

English | 한국어

A Prettier plugin that applies the text replacements you register to Markdown and MDX documents, and leaves code spans, code blocks and MDX comments exactly as written.

Register the spellings you keep getting wrong, or the notation your project has settled on, and they are corrected every time a document is formatted.

Contents

Requirements

ItemVersion
Node.js18 or later
Prettier3.5.3 or later

Installation

Install it as a dev dependency alongside Prettier.

# npm
npm install --save-dev prettier prettier-plugin-markdown-replacements

# yarn
yarn add --dev prettier prettier-plugin-markdown-replacements

# pnpm
pnpm add --save-dev prettier prettier-plugin-markdown-replacements

The package is an ES module, so name it in plugins rather than loading it with require(). Prettier 3's plugin loader handles ES modules directly, from any configuration file format.

Configuration

Add the package to plugins and list your rules. The default is empty, so nothing is replaced until you add one.

{
  "plugins": ["prettier-plugin-markdown-replacements"],
  "markdownReplacements": ["Javascript=>JavaScript", "Github=>GitHub"]
}

Before

<!-- prettier-ignore -->
Send a Javascript request from Github.

| Field | Description |
| --- | --- |
| `Javascript` | Javascript runtime |

After

<!-- prettier-ignore -->
Send a JavaScript request from GitHub.

| Field | Description |
| --- | --- |
| `Javascript` | JavaScript runtime |

Prose in the body, in headings, in lists and in table cells is corrected, while anything wrapped in code markup keeps its original spelling.

Rule formats

FormatExampleBehavior
LiteralJavascript=>JavaScriptCompared as a plain string and replaced at every occurrence
Regular expression/Max ([0-9]+)/g=>Maximum: $1Written as /pattern/flags, with capture references such as $1 available

With the regular expression above, Max 50 becomes Maximum: 50. The g flag is added automatically when omitted, so every occurrence is replaced.

  • The separator is the first => in a literal rule, and the => after the flags in a regular expression rule. The replacement itself may contain =>.
  • Nothing is trimmed, so leading and trailing spaces are part of the rule.
  • Rules are applied in array order, and the output of one rule is the input of the next.
  • An entry without a separator or with an empty left side is ignored while the remaining rules still run.
  • An entry that starts with / but does not read as a regular expression rule, because the pattern is invalid or a flag is unknown, is treated as a literal rule. That keeps a path rewrite such as /docs/guide=>/docs/tutorial working, and it also means a mistyped regular expression matches nothing rather than failing loudly.
  • The flags are the ones the running JavaScript engine accepts. The v flag needs Node.js 20 or later; on Node.js 18 a rule that uses it is read as a literal rule.
  • In a JSON configuration file every backslash in the pattern is written twice, because JSON uses the backslash as an escape character itself. The rule /<br\s*\/?>/gi=><br /> is stored as "/<br\\s*\\/?>/gi=><br />".

Why replacements run in the formatter

Prettier decides how a document is printed and does not change what it says. A replacement changes the content, so putting one in a Prettier plugin is a deliberate choice rather than an oversight, and it is worth saying why.

Formatting is the one step that already runs on every document, in the editor on each save and in CI on each commit. A separate rewriting pass would need its own invocation, its own file discovery and its own ignore rules, and a spelling that slipped past it would sit in the repository until somebody noticed. Registering the rule here means the notation a project has settled on is applied at the moment the document is formatted, so a formatted document is a corrected one.

The rest of this page follows from that choice. A rule sees the whole source at once, which is why one that reaches across a line break rewrites the document's structure, and why the regions that have to survive verbatim are lifted out before any rule runs. When a rule turns out to be broad enough to be destructive, the plugin leaves the document exactly as it was.…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • markdown
  • mdx
  • replace
  • typo

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

prettier-plugin-markdown-replacements weekly downloads on npm, last 90 days: 14 weekly downloads as of Dec 5, 2026, -60.0% over 90 days.prettier-plugin-markdown-replacementsWeekly downloads on npm · Last 90 days14downloads / week-60.0% over 90 days0102030405060Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-markdown-replacements weekly downloads on npm, last 90 days: 14 weekly downloads as of Dec 5, 2026, -60.0% over 90 days.

7/30/90-day growth

prettier-plugin-markdown-replacements weekly downloads growth on npm: +27.3% over 7 days, +75.0% over 30 days, -60.0% over 90 days.prettier-plugin-markdown-replacementsWeekly downloads growth on npm14downloads / week now7-day growth+3 weekly downloads+27.3%30-day growth+6 weekly downloads+75.0%90-day growth-21 weekly downloads-60.0%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-markdown-replacements weekly downloads growth on npm: +27.3% over 7 days, +75.0% over 30 days, -60.0% over 90 days.

Ranking history

prettier-plugin-markdown-replacements npm ranking history: currently #3061 (by weekly downloads).prettier-plugin-markdown-replacementsnpm ranking · by weekly downloads · Last 90 days#3061current rank#1800#2000#2200#2400#2600#2800#3000#3200Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-markdown-replacements npm ranking history: currently #3061 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 154, #3 (overall #3,063)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 10, #20 (overall #200)
Prettier plugins: every listing in weekly downloads order

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)
Recent weekly downloads observations for prettier-plugin-markdown-replacements
Date (UTC)Weekly downloadsChange vs. previous
140
14-1
15-1
16-1
17+6
11+2
9-2
110
11+1
10+3
7+2
5-4
90
9—

Data 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-replacements. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.