Skip to content

Commit cdfe8e7

Browse files
authored
Merge pull request #42 from williamstein/patch-1
fix bug in level - the code increases the level by 1 but doesn't reduce it by 1
2 parents b08ddd3 + 4d82af1 commit cdfe8e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

texmath.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ texmath.block = (rule) =>
9494
if (parentType === 'blockquote') // remove all leading '>' inside multiline formula
9595
match[1] = match[1].replace(/(\n*?^(?:\s*>)+)/gm,'');
9696
// begin token
97-
let token = state.push(rule.name, 'math', 1); // 'math_block'
97+
let token = state.push(rule.name, 'math', 0); // 'math_block'
9898
token.block = true;
9999
token.tag = rule.tag;
100100
token.markup = '';

0 commit comments

Comments
 (0)