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 with npm:
npm install textlint-rule-no-curly-quotes
Via .textlintrc.json
(Recommended)
{
"rules": {
"no-curly-quotes": true
}
}
Via CLI
textlint --rule no-curly-quotes README.md
Builds source codes for publish to the lib
folder.
You can write ES2015+ source codes in src/
folder.
npm run build
Run test code in test
folder.
Test textlint rule by textlint-tester.
npm test
MIT © aborazmeh