@0x6b/textlint-rule-no-numbered-headings-and-bullets
v0.2.0
Published
textlint rule which detects and reports numbered headings and bullet list items.
Downloads
36
Maintainers
Readme
textlint-rule-no-numbered-headings-and-bullets
textlint rule which detects and reports numbered headings and bullet list items in your markdown document.
This rule prevents the use of numbered prefixes (like 1., 2., etc.) in:
- ATX-style markdown headings (e.g.,
# 1. First Heading) - Bullet list items, including nested/indented lists (e.g.,
- 1. First item) - Headings with inline formatting (e.g.,
# 1. **Bold** Heading)
Note: Only ATX-style headings (# Heading) are supported. Setext-style headings with underlines (Heading\n=====) cannot be detected.
Install
Install with pnpm:
pnpm add @0x6b/textlint-rule-no-numbered-headings-and-bulletsOr with npm:
npm install @0x6b/textlint-rule-no-numbered-headings-and-bulletsThis module requires Node.js >= 20.0.0.
Usage
Via .textlintrc(recommended):
{
"rules": {
"@0x6b/no-numbered-headings-and-bullets": true
}
}Via CLI:
textlint --rule @0x6b/no-numbered-headings-and-bullets README.mdBuild
Builds source codes for publish to the lib/ folder.
pnpm install && pnpm run buildTest
Run test code in test folder by textlint-tester.
pnpm testReferences
License
MIT © 0x6b
