Skip to content

Commit 5544ea5

Browse files
committed
Remove workaround for markdown-it-texmath issue fixed in @1.0.0.
1 parent 1154ab4 commit 5544ea5

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

demo/markdownlint-browser.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,11 +1418,6 @@ function annotateAndFreezeTokens(tokens, lines) {
14181418
if (!token.map && trMap) {
14191419
token.map = [...trMap];
14201420
}
1421-
// Adjust maps for math blocks
1422-
if (helpers.isMathBlock(token) && token.map[1]) {
1423-
// markdown-it-texmath plugin does not account for math_block_end
1424-
token.map[1]++;
1425-
}
14261421
// Update token metadata
14271422
if (token.map) {
14281423
token.line = lines[token.map[0]];

lib/markdownlint.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,6 @@ function annotateAndFreezeTokens(tokens, lines) {
233233
if (!token.map && trMap) {
234234
token.map = [ ...trMap ];
235235
}
236-
// Adjust maps for math blocks
237-
if (helpers.isMathBlock(token) && token.map[1]) {
238-
// markdown-it-texmath plugin does not account for math_block_end
239-
token.map[1]++;
240-
}
241236
// Update token metadata
242237
if (token.map) {
243238
token.line = lines[token.map[0]];

0 commit comments

Comments
 (0)