Skip to content

Commit

Permalink
Remove workaround for markdown-it-texmath issue fixed in @1.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAnson committed Aug 2, 2022
1 parent 1154ab4 commit 5544ea5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions demo/markdownlint-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down
5 changes: 0 additions & 5 deletions lib/markdownlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]];
Expand Down

0 comments on commit 5544ea5

Please sign in to comment.