A remark-lint plugin (v0.1.2) enforcing spacing between numbers and Chinese characters per the Chinese Document Style Guide. It warns when a number (including percentages) is directly adjacent to Chinese text without a space. Designed for use with remark-lint, it integrates into remark CLI, config files, or API. Differs from general lint rules by targeting CJK typographic conventions; actively maintained with irregular release cadence.
npm install remark-lint-spaces-around-numberNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows usage with remark API: process markdown and catch missing space between number and Chinese.
Ensure remark-lint is installed and used as a plugin before this one.
Use default import: import pkg from 'remark-lint-spaces-around-number'
Upgrade to v0.1.0 or later which uses unified-lint-rule
Use import syntax
Use `import remarkLintSpacesAroundNumber from 'remark-lint-spaces-around-number'`
Run `npm install remark-lint`
Add `remark-lint-spaces-around-number` as a plugin after `remark-lint`