Skip to content

Commit cb3f838

Browse files
katex: Explain reason for ignoring .vlist-t2 and .vlist-s CSS classes
Fixes: #1716
1 parent f304ec4 commit cb3f838

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/model/katex.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,13 @@ class _KatexParser {
356356
}
357357
}
358358

359-
// TODO(#1716) Handle styling for .vlist-t2 spans
359+
// We ignore the styling for .vlist-t2 CSS class on the root vlist
360+
// span, and also the styling for .vlist-s CSS class on the empty span
361+
// in the first .vlist-r span, because in KaTeX they only exists as a
362+
// workaround for a Safari bug, and we don't need to apply those.
363+
// See:
364+
// https://github.com/KaTeX/KaTeX/commit/766487bfe3bfdfabb73068401536ca03aa115e0d
365+
360366
return KatexVlistNode(
361367
rows: rows,
362368
debugHtmlNode: kDebugMode ? element : null,

0 commit comments

Comments
 (0)