Skip to content

Commit cbeef34

Browse files
committed
content [nfc]: Explain why some KaTeX CSS classes are unused in its CSS
1 parent fbfe595 commit cbeef34

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/model/katex.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,12 @@ class _KatexParser {
358358
case 'mathdefault':
359359
// Ignore these classes because they don't have a CSS definition
360360
// in katex.scss, but we encounter them in the generated HTML.
361+
// (Why are they there if they're not used? The story seems to be:
362+
// they were used in KaTeX's CSS in the past, before 2020 or so; and
363+
// they're still used internally by KaTeX in producing the HTML.
364+
// https://github.com/KaTeX/KaTeX/issues/2194#issuecomment-584703052
365+
// https://github.com/KaTeX/KaTeX/issues/3344
366+
// )
361367
break;
362368

363369
default:

0 commit comments

Comments
 (0)