From bf1016510bbe9038f794ab73e08c5f5514bc2977 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Sun, 19 Oct 2014 01:39:05 +0400 Subject: [PATCH] typo fix --- lib/rules_inline/strikethrough.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules_inline/strikethrough.js b/lib/rules_inline/strikethrough.js index e496791..a01c341 100644 --- a/lib/rules_inline/strikethrough.js +++ b/lib/rules_inline/strikethrough.js @@ -23,7 +23,7 @@ module.exports = function strikethrough(state) { // this code also prevents recursion if (state.validateInsideEm || state.validateInsideLink) { return false; } - if (state.level >= state.options.level) { return false; } + if (state.level >= state.options.maxNesting) { return false; } lastChar = start > 0 ? state.src.charCodeAt(start - 1) : -1; nextChar = state.src.charCodeAt(start + 2);