Skip to content

Custom textlint rule for allowing lowercase variations of terms when linked.

Notifications You must be signed in to change notification settings

craftcms/textlint-rule-linkable-params

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textlint-rule-linkable-params

Permits linking to a lowercase instance of a parameter that should otherwise appear in caps in a normal sentence.

Example:

# 👍
We always want to capitalize ID in a sentence.

# 👍
We also want to be able to link to a literal [id](#id) param.

# 
But we shouldn’t ever write id in normal text.

Install

Install with npm:

npm install textlint-rule-linkable-params

Usage

Via .textlintrc(Recommended)

{
  "rules": {
    "linkable-params": true
  }
}

Via CLI

textlint --rule linkable-params README.md

Build

Builds source codes for publish to the lib folder. You can write ES2015+ source codes in src/ folder.

npm run build

Tests

Run test code in test folder. Test textlint rule by textlint-tester.

npm test

License

ISC ©

About

Custom textlint rule for allowing lowercase variations of terms when linked.

Topics

Resources

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published