We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed9b92c commit d060034Copy full SHA for d060034
lib/model/katex.dart
@@ -457,6 +457,19 @@ class _KatexParser {
457
_ => throw KatexHtmlParseError(),
458
};
459
460
+ // Some .op-symbol spans can have `position: relative` with some
461
+ // `top` offset as inline styles. We expect that if position is
462
+ // present it is always `relative` and be accompanying with some
463
+ // `top` offset.
464
+ if (inlineStyles case KatexSpanStyles(
465
+ :final position,
466
+ :final topEm,
467
+ ) when position != null) {
468
+ if (position != KatexSpanPosition.relative || topEm == null) {
469
+ throw KatexHtmlParseError();
470
+ }
471
472
+
473
// TODO handle more classes from katex.scss
474
475
case 'mord':
0 commit comments