mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 22:10:13 +01:00
Fix test break introduced by test-only dependency markdown-it-texmath changing the tag for token type "math_block" from "math" to "$$" from version 0.9.6 to 0.9.7.
This commit is contained in:
parent
b8e8609f5f
commit
8849e84e1c
2 changed files with 2 additions and 2 deletions
|
|
@ -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"));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue