Browse Source

Support switching off typographer quotes replacements

pull/762/head
Kyle E. Mitchell 4 years ago
parent
commit
37ebda0fad
  1. 6
      lib/rules_core/smartquotes.js

6
lib/rules_core/smartquotes.js

@ -187,7 +187,11 @@ module.exports = function smartquotes(state) {
/*eslint max-depth:0*/
var blkIdx;
if (!state.md.options.typographer) { return; }
var typographerOption = state.md.options.typographer;
if (!typographerOption) { return; }
var optionIsObject = typeof typographerOption === 'object';
if (optionIsObject && !typographerOption.quotes) { return; }
for (blkIdx = state.tokens.length - 1; blkIdx >= 0; blkIdx--) {

Loading…
Cancel
Save