Skip to content

Commit 0498916

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

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
@@ -364,6 +364,12 @@ class _KatexParser {
364364
case 'mathdefault':
365365
// Ignore these classes because they don't have a CSS definition
366366
// in katex.scss, but we encounter them in the generated HTML.
367+
// (Why are they there if they're not used? The story seems to be:
368+
// they were used in KaTeX's CSS in the past, before 2020 or so; and
369+
// they're still used internally by KaTeX in producing the HTML.
370+
// https://github.com/KaTeX/KaTeX/issues/2194#issuecomment-584703052
371+
// https://github.com/KaTeX/KaTeX/issues/3344
372+
// )
367373
break;
368374

369375
default:

0 commit comments

Comments
 (0)