Skip to content

Commit

Permalink
Merge pull request #42 from williamstein/patch-1
Browse files Browse the repository at this point in the history
fix bug in level - the code increases the level by 1 but doesn't reduce it by 1
  • Loading branch information
goessner authored May 26, 2022
2 parents b08ddd3 + 4d82af1 commit cdfe8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion texmath.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ texmath.block = (rule) =>
if (parentType === 'blockquote') // remove all leading '>' inside multiline formula
match[1] = match[1].replace(/(\n*?^(?:\s*>)+)/gm,'');
// begin token
let token = state.push(rule.name, 'math', 1); // 'math_block'
let token = state.push(rule.name, 'math', 0); // 'math_block'
token.block = true;
token.tag = rule.tag;
token.markup = '';
Expand Down

0 comments on commit cdfe8e7

Please sign in to comment.