textlint-rule-no-curly-quotes
v1.0.0
Published
prevents the usage of curly quotation marks, and replace them to normal ascii ones
Downloads
80
Readme
textlint-rule-no-curly-quotes
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.
|Character|Replacement|
|-|-|
|“
|"
|
|”
|"
|
|‘
|'
|
|’
|'
|
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