From 5544ea54d7226f2c56065b17ede5d813a73b2ca1 Mon Sep 17 00:00:00 2001 From: David Anson Date: Mon, 1 Aug 2022 18:29:18 -0700 Subject: [PATCH] Remove workaround for markdown-it-texmath issue fixed in @1.0.0. --- demo/markdownlint-browser.js | 5 ----- lib/markdownlint.js | 5 ----- 2 files changed, 10 deletions(-) diff --git a/demo/markdownlint-browser.js b/demo/markdownlint-browser.js index b9198404a..693fe7449 100644 --- a/demo/markdownlint-browser.js +++ b/demo/markdownlint-browser.js @@ -1418,11 +1418,6 @@ function annotateAndFreezeTokens(tokens, lines) { if (!token.map && trMap) { token.map = [...trMap]; } - // Adjust maps for math blocks - if (helpers.isMathBlock(token) && token.map[1]) { - // markdown-it-texmath plugin does not account for math_block_end - token.map[1]++; - } // Update token metadata if (token.map) { token.line = lines[token.map[0]]; diff --git a/lib/markdownlint.js b/lib/markdownlint.js index eee001105..23a42e6b7 100644 --- a/lib/markdownlint.js +++ b/lib/markdownlint.js @@ -233,11 +233,6 @@ function annotateAndFreezeTokens(tokens, lines) { if (!token.map && trMap) { token.map = [ ...trMap ]; } - // Adjust maps for math blocks - if (helpers.isMathBlock(token) && token.map[1]) { - // markdown-it-texmath plugin does not account for math_block_end - token.map[1]++; - } // Update token metadata if (token.map) { token.line = lines[token.map[0]];