Skip to content

Commit ea5ff37

Browse files
add CSS source inline from katex.scss
1 parent 0766f7a commit ea5ff37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/model/katex.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,17 +639,21 @@ class _KatexParser {
639639

640640
case 'overline':
641641
case 'underline':
642+
// Wrapper spans for overline/underline, the actual border is on -line child
642643
break;
643644

644645
case 'overline-line':
645-
//
646+
// .overline-line { display: inline-block; width: 100%; border-bottom-style: solid; }
647+
// Border applied via inline style: border-top-width: 0.04em;
646648
borderStyle = KatexBorderStyle(
647649
position: KatexBorderPosition.bottom,
648650
widthEm: 0.04,
649651
);
650652
break;
651653

652654
case 'underline-line':
655+
// .underline-line { display: inline-block; width: 100%; border-bottom-style: solid; }
656+
// Border applied via inline style: border-bottom-width: 0.04em;
653657
borderStyle = KatexBorderStyle(
654658
position: KatexBorderPosition.bottom,
655659
widthEm: 0.04,

0 commit comments

Comments
 (0)