From e7faea63d21beed52feaf967f28892cf0c853b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Gr=C5=88o?= Date: Fri, 31 Aug 2018 11:36:37 +0200 Subject: [PATCH] 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? --- lib/rules_core/smartquotes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules_core/smartquotes.js b/lib/rules_core/smartquotes.js index bff7ef7..faf4dee 100644 --- a/lib/rules_core/smartquotes.js +++ b/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--) {