Skip to content
PluginStats

@dvyio/prettier-plugin-collapse-markdown-tables weekly downloads statistics

By dvyio · npm · Prettier plugins

Prettier plugin that collapses Markdown table padding.

View on npm Fresh · Oct 17, 2026

@dvyio/prettier-plugin-collapse-markdown-tables has 39 recorded weekly downloads on npm, a decrease of 71.3% over the past 30 days.

It ranks #1756 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +56.0%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
39
Official API · Oct 17, 2026
7-day growth
-70.7%
-94 weekly downloads
30-day growth
-71.3%
-97 weekly downloads
90-day growth
+56.0%
+14 weekly downloads
Rank
#1756
Among tracked npm listings

About @dvyio/prettier-plugin-collapse-markdown-tables

@dvyio/prettier-plugin-collapse-markdown-tables

Format Markdown tables without Prettier's wide column alignment.

The plugin runs after Prettier's Markdown printer. It keeps real Markdown tables readable while leaving code samples, ignored blocks, and MDX code-like content alone.

Project Links

• Repository: github.com/dvyio/prettier-plugin-collapse-markdown-tables • Report bugs: GitHub issues • Contributing: CONTRIBUTING.md • Security: SECURITY.md • License: MIT

Requirements

• Node >=20.19.0 • Prettier ^3.0.0

The test suite checks the packed plugin with Prettier 3.0.0 and the current Prettier 3.x release used by this repo.

CI checks Node 20.x, Node 22.x, and Node 24.x. Each Node job has two Prettier lanes: the lockfile install and a fresh prettier@^3 install. The lockfile lanes own repository source formatting. The latest-Prettier lanes still build, typecheck, lint, run the tests, dogfood the plugin, and inspect the package without applying a different Prettier minor's source style. That makes the package fail fast when either the minimum Node version, the supported Prettier peer range, or the packed release shape breaks.

Node versions newer than 24.x are allowed by engines.node and are expected to work, but they are not separately certified by CI yet.

Install

Install the plugin from npm with Prettier:

For local development, install this package's dependencies once:

Build this package before installing it from a local path:

Then install it from the consuming project without running install scripts:

If you skip --ignore-scripts, npm may run pack lifecycle scripts while it copies a local path or git package. Use that only for sources you trust.

You can also test the package shape before publishing or installing it elsewhere:

Release notes and the version policy live in CHANGELOG.md. Release steps live in docs/release-runbook.md.

Release

Before publishing a release, run the release gate:

After main CI passes, GitHub Actions creates the release tag, publishes through npm trusted publishing, and creates the GitHub release. See docs/release-runbook.md for the full release flow.

License

MIT. See LICENSE.

Configure

Use the plugin from your Prettier config:

You can also pass it on the CLI:

This package is ESM-only. CommonJS projects can still load the plugin by package name from .prettierrc.cjs:

Do not call require("@dvyio/prettier-plugin-collapse-markdown-tables") from CommonJS code. This package does not ship a CommonJS build.

Plugin Ordering

This plugin must be the active Markdown printer. It wraps Prettier's built-in Markdown printer, checks whether the document can contain tables, then rewrites the final Markdown text.

That final rewrite is an adapter boundary. Prettier owns Markdown and MDX parsing. This plugin owns a smaller post-print table pass. That keeps this package small, but it means parser wrapping, protected regions, range formatting, cursor mapping, and package compatibility need focused tests.

If another plugin also registers a Markdown mdast printer, only one printer runs. This plugin does not compose with that printer or use its custom output. It always wraps Prettier's built-in Markdown printer.

Put @dvyio/prettier-plugin-collapse-markdown-tables after other Markdown plugins when you want table collapsing to run. In that setup, this plugin replaces their Markdown printer for the final print step. If another Markdown printer appears after this plugin, that printer can replace this plugin and bypass table collapsing.

Reliable setup:

Avoid this order:

Options

markdownTableStyle: "spaced"

This is the default. It writes one space inside each table cell.

Before:

After:

markdownTableStyle: "compact"

This removes padding inside table cells.

Before:

After:

markdownTableStyle: "prettier"

This turns the plugin's post-print table rewrite off and keeps Prettier's built-in alignment.

The parser still adds missing backslashes to inline-code pipes when that is needed to keep the right number of table cells.

Before:

After:

markdownTableFencedCode: "protected"

This is the default. It keeps all fenced code blocks unchanged by this plugin.

Prettier may still format embedded languages before this plugin runs.

markdownTableFencedCode: "markdown"

This collapses tables inside Markdown-like fenced code blocks. It applies to fences marked markdown, md, mdx, or gfm.

Use this when your docs include Markdown examples that should use the same table style as the rest of the file.

Supported Contexts

The plugin normalizes normal Markdown tables at the root of a document, inside list items, inside blockquotes, inside mixed blockquote/list nesting, and inside footnotes parsed by Prettier's Markdown parser.

becomes:

MDX files are supported. Normal Markdown tables in MDX are normalized, but JSX and code-like MDX content is skipped.

Repository Checks

npm run format uses .prettierrc without loading this plugin. That keeps normal source formatting independent from dist, README, CONTRIBUTING, SECURITY, and dogfood Markdown.

npm run format:dogfood:check builds the plugin first, then checks this README, CONTRIBUTING.md, SECURITY.md, and tests/dogfood/markdown-tables.md with the built plugin. That check runs after Prettier has already printed each file, so skipped regions are skipped by this plugin's collapse pass. Prettier can still format embedded languages before the collapse pass runs. npm run check runs both paths.

npm run test:stress runs the adversarial normalization cases with the stricter performance ceiling. Normal npm run check keeps a generous ceiling so slow CI workers still catch hangs without failing on benchmark noise.

Use the audit coverage checklist before changing parser wrapping, range handling, protected-region scanning, table repair, rendering, packaging, or fixture coverage.

Maintainer setup, focused test commands, stress-test rules, fixture rules, and PR expectations live in CONTRIBUTING.md.

Skipped Content…

Description from the npm listing.

  • formatting
  • markdown
  • markdown-tables
  • prettier
  • prettier-plugin
  • tables

Where @dvyio/prettier-plugin-collapse-markdown-tables sits in the listing

Each band is one page of 20. Weekly downloads on a log 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.

All npm2,248 listings · 113 pages · page 88, #17 (overall #1757)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins241 listings · 13 pages · page 4, #12 (overall #72)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@dvyio/prettier-plugin-collapse-markdown-tables weekly downloads on npm, last 90 days: 39 weekly downloads as of Oct 17, 2026, +56.0% over 90 days.@dvyio/prettier-plugin-collapse-markdo…Weekly downloads on npm · Last 90 days39downloads / week+56.0% over 90 days050100150200250300Jul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@dvyio/prettier-plugin-collapse-markdown-tables weekly downloads on npm, last 90 days: 39 weekly downloads as of Oct 17, 2026, +56.0% over 90 days.
PNG SVG

7/30/90-day growth

@dvyio/prettier-plugin-collapse-markdown-tables weekly downloads growth on npm: -70.7% over 7 days, -71.3% over 30 days, +56.0% over 90 days.@dvyio/prettier-plugin-collapse-markdo…Weekly downloads growth on npm39downloads / week now7-day growth-94 weekly downloads-70.7%30-day growth-97 weekly downloads-71.3%90-day growth+14 weekly downloads+56.0%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@dvyio/prettier-plugin-collapse-markdown-tables weekly downloads growth on npm: -70.7% over 7 days, -71.3% over 30 days, +56.0% over 90 days.
PNG SVG

Ranking history

@dvyio/prettier-plugin-collapse-markdown-tables npm ranking history: currently #1756 (by weekly downloads).@dvyio/prettier-plugin-collapse-markdo…npm ranking · by weekly downloads · Last 90 days#1756current rank#1754#1755#1756#1757#1758Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@dvyio/prettier-plugin-collapse-markdown-tables npm ranking history: currently #1756 (by weekly downloads).
PNG SVG

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.

Recent observations

Full history (121)
Recent weekly downloads observations for @dvyio/prettier-plugin-collapse-markdown-tables
Date (UTC)Weekly downloadsChange vs. previous
39-13
52+2
50-25
75-52
1270
127-25
152+19
133+11
122-31
153+3
150+13
137-132
269+22
247—

Similar npm Prettier plugins plugins

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/@dvyio/prettier-plugin-collapse-markdown-tables. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.