Registry / devops / prettier-plugin-md-nocjsp

prettier-plugin-md-nocjsp

JSON →
library1.5.1jsnpmunverified

A Prettier plugin (v1.5.1, active) that prevents Prettier from inserting spaces between Chinese/Japanese characters and Latin letters/numbers in Markdown documents. Requires Prettier 2.x. Not needed with Prettier 3.x. Provides custom parsers 'markdown-nocjsp' and 'mdx-nocjsp'. Key differentiator: solves the specific issue of unwanted spacing for CJK text, with a quickFix option to revert past damage.

npm install prettier-plugin-md-nocjsp
INSTALL
IMPORT
SIG · PRETTIER-PLUGIN-MD
P
prettier-plugin-md-nocjsp
devopsjavascriptv1.5.1
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

plugin
✓ Add 'prettier-plugin-md-nocjsp' to package.json or .prettierrc plugins; no JavaScript import needed
✗ import prettierPluginMdNocjsp from 'prettier-plugin-md-nocjsp'; // not a JS module, it's a plugin
Installed as a Prettier plugin, not imported directly in code. Use via CLI or config.
parser
✓ Set parser: 'markdown-nocjsp' in .prettierrc overrides
✗ parser: 'nocjsp' // incorrect name
Available parsers: markdown-nocjsp (for .md) and mdx-nocjsp (for .mdx).
option
✓ Set quickFix: true in .prettierrc overrides to remove existing extra spaces
✗ quickFix: false // default is false, but setting true only for one-time fix
quickFix is a private option available since v1.4.0, not exposed via CLI.

Shows installation, configuration with overrides for .md and .mdx, and formatting via CLI.

// Install dependencies npm install --save-dev prettier prettier-plugin-md-nocjsp // Create .prettierrc with: { "overrides": [ { "files": ["*.md", "README"], "options": { "parser": "markdown-nocjsp" } }, { "files": "*.mdx", "options": { "parser": "mdx-nocjsp" } } ] } // Format your Markdown files npx prettier --write *.md
Debug
Known issues
breakingThis plugin will NOT work with Prettier 3.x. Use the built-in behavior instead.
fix
Uninstall this plugin when upgrading to Prettier 3.x; it is no longer needed.
affects: >=1.0.0
deprecatedThe functionality has been merged into Prettier 3.x. This plugin is deprecated for future use.
fix
Switch to Prettier 3.x and remove this plugin from dependencies.
affects: >=1.0.0
gotchaquickFix option only works in configuration file, not via CLI flags.
fix
Add quickFix: true to .prettierrc overrides section for a one-time format.
affects: >=1.4.0
gotchaThe plugin only affects Markdown parsing; other Prettier rules (e.g., wrapping) still apply.
fix
Use the plugin only for CJK spacing; configure other Prettier options separately.
affects: >=1.0.0
gotchaThe plugin must be listed as a plugin in Prettier config or discovered automatically; it is not imported as a module.
fix
Ensure the package is installed and Prettier can find it (e.g., install in project root or use --plugins).
affects: >=1.0.0
Errors
Common errors & fixes
Cannot find module 'prettier-plugin-md-nocjsp'
Plugin not installed or not in node_modules
fix
Run npm install --save-dev prettier-plugin-md-nocjsp
Unsupported parser "markdown-nocjsp" specified. This typically indicates a misconfigured plugin.
Prettier cannot load the plugin; it may be missing or not installed
fix
Install the plugin and ensure it is listed in plugins or auto-discovered
Error: Unknown option: quickFix
Using quickFix via CLI instead of config file
fix
Set quickFix: true in .prettierrc overrides, not as a CLI argument
Error: prettier-plugin-md-nocjsp is only compatible with Prettier 2.x
Trying to use with Prettier 3.x
fix
Downgrade to Prettier 2.x or uninstall this plugin (feature built into 3.x)
Upgrade
Version history
1.5.1latest on npm
Audit
Dependencies
prettierrequiredpeer dependency: required to run as a plugin
Agent activity
4 hits · last 30 days
node
4
Resources
prettier-plugin-md-nocjsp — npm install prettier-plugin-md-nocjsp · libregistry