Browse Source

Option to turn on smartquotes without typographer

I think that smartquotes are cool but I don't like the other replacements. Wouldn't it be nice to have a toggle just for smartquotes?
pull/488/head
Michal Grňo 7 years ago
committed by GitHub
parent
commit
e7faea63d2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      lib/rules_core/smartquotes.js

2
lib/rules_core/smartquotes.js

@ -181,7 +181,7 @@ module.exports = function smartquotes(state) {
/*eslint max-depth:0*/
var blkIdx;
if (!state.md.options.typographer) { return; }
if (!state.md.options.typographer && !state.md.options.smartQuotes) { return; }
for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {

Loading…
Cancel
Save