From 4e1007edae5687e85a7fdcfa397a3b34fd8cce3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samy=20Pess=C3=A9?= Date: Wed, 24 Feb 2016 11:13:38 +0100 Subject: [PATCH] Fix calcul of token.size for backticks --- lib/rules_inline/backticks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rules_inline/backticks.js b/lib/rules_inline/backticks.js index 5a1b986..efec079 100644 --- a/lib/rules_inline/backticks.js +++ b/lib/rules_inline/backticks.js @@ -32,7 +32,7 @@ module.exports = function backtick(state, silent) { .replace(/[ \n]+/g, ' ') .trim(); token.position = start; - token.size = (matchStart + 1) - token.position; + token.size = matchEnd - token.position; } state.pos = matchEnd; return true;