Skip to content

Commit 44305ef

Browse files
committed
content [nfc]: Explain why KaTeX .mspace requires no action
1 parent e971402 commit 44305ef

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/model/katex.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,13 @@ class _KatexParser {
275275
// .mspace .
276276

277277
case 'mspace':
278-
// .mspace { ... }
279-
// Do nothing, it has properties that don't need special handling.
278+
// .mspace { display: inline-block; }
279+
// A .mspace span's children are always either empty,
280+
// a no-break space " " (== "\xa0"),
281+
// or one span.mtight containing a no-break space.
282+
// TODO enforce that constraint on .mspace spans in parsing
283+
// So `display: inline-block` has no effect compared to
284+
// the initial `display: inline`.
280285
break;
281286

282287
// TODO handle skipped class declarations between .mspace and

0 commit comments

Comments
 (0)