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 9827271 commit 22f09edCopy full SHA for 22f09ed
lib/model/katex.dart
@@ -247,13 +247,17 @@ class _KatexParser {
247
for (final innerSpan in vlist.nodes) {
248
if (innerSpan case dom.Element(
249
localName: 'span',
250
- className: '',
251
nodes: [
252
dom.Element(localName: 'span', className: 'pstrut') &&
253
final pstrutSpan,
254
...final otherSpans,
255
],
256
)) {
+ if (innerSpan.className != '') {
257
+ throw _KatexHtmlParseError('unexpected CSS class for '
258
+ 'vlist inner span: ${innerSpan.className}');
259
+ }
260
+
261
var styles = _parseSpanInlineStyles(innerSpan)!;
262
final topEm = styles.topEm ?? 0;
263
0 commit comments