Skip to content

Commit 3438f08

Browse files
rajveermalviyagnprice
authored andcommitted
content: Ignore KaTeX classes that don't have CSS definition
1 parent f003f58 commit 3438f08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/model/katex.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,11 @@ class _KatexParser {
357357
case 'mop':
358358
case 'mclose':
359359
case 'minner':
360+
case 'mbin':
361+
case 'mpunct':
362+
case 'nobreak':
363+
case 'allowbreak':
364+
case 'mathdefault':
360365
// Ignore these classes because they don't have a CSS definition
361366
// in katex.scss, but we encounter them in the generated HTML.
362367
break;

0 commit comments

Comments
 (0)