diff --git a/demo/markdownlint-browser.js b/demo/markdownlint-browser.js index b0a93eb5..294c2b84 100644 --- a/demo/markdownlint-browser.js +++ b/demo/markdownlint-browser.js @@ -251,7 +251,7 @@ module.exports.filterTokens = filterTokens; * @returns {boolean} True iff token is a math block. */ function isMathBlock(token) { - return ((token.tag === "math") && + return (((token.tag === "$$") || (token.tag === "math")) && token.type.startsWith("math_block") && !token.type.endsWith("_end")); } diff --git a/helpers/helpers.js b/helpers/helpers.js index a1b10952..d13ae4b2 100644 --- a/helpers/helpers.js +++ b/helpers/helpers.js @@ -247,7 +247,7 @@ module.exports.filterTokens = filterTokens; */ function isMathBlock(token) { return ( - (token.tag === "math") && + ((token.tag === "$$") || (token.tag === "math")) && token.type.startsWith("math_block") && !token.type.endsWith("_end") );