Skip to content

Commit 92effd0

Browse files
content: Handle 'mspace' and 'msupsub' KaTeX CSS classes
1 parent 20b6c93 commit 92effd0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/model/katex.dart

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,21 @@ class _KatexParser {
305305
fontStyle = KatexSpanFontStyle.normal;
306306

307307
// TODO handle skipped class declarations between .mainrm and
308+
// .mspace .
309+
310+
case 'mspace':
311+
// .mspace { ... }
312+
// Do nothing, it has properties that don't need special handling.
313+
break;
314+
315+
// TODO handle skipped class declarations between .mspace and
316+
// .msupsub .
317+
318+
case 'msupsub':
319+
// .msupsub { text-align: left; }
320+
textAlign = KatexSpanTextAlign.left;
321+
322+
// TODO handle skipped class declarations between .msupsub and
308323
// .sizing .
309324

310325
case 'sizing':

0 commit comments

Comments
 (0)