1.0.0 • Published 1 year ago

textlint-rule-no-curly-quotes v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

textlint-rule-no-curly-quotes Actions Status: test textlint rule

Prevents the usage of curly quotation marks, and replace them to normal ascii ones.

The purpose of this package is to use ascii characters in editor, and convert them to curly symbols if you want in rendering using a parser which supports this like Typographer extension of goldmark or smartypants.

This is the opposite of textlint-rule-quotes, and you probably won't to stop one of them as they contradict.

CharacterReplacement
"
"
'
'

Install

Install with npm:

npm install textlint-rule-no-curly-quotes

Usage

Via .textlintrc.json(Recommended)

{
    "rules": {
        "no-curly-quotes": true
    }
}

Via CLI

textlint --rule no-curly-quotes 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

MIT © aborazmeh

1.0.0

1 year ago