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 2c5a28c commit 7d76da7Copy full SHA for 7d76da7
lib/model/katex.dart
@@ -195,13 +195,17 @@ class _KatexParser {
195
for (final innerSpan in vlist.nodes) {
196
if (innerSpan case dom.Element(
197
localName: 'span',
198
- className: '',
199
nodes: [
200
dom.Element(localName: 'span', className: 'pstrut') &&
201
final pstrutSpan,
202
...final otherSpans,
203
],
204
)) {
+ if (innerSpan.className != '') {
205
+ throw KatexHtmlParseError('unexpected CSS class for '
206
+ 'vlist inner span: ${innerSpan.className}');
207
+ }
208
+
209
var styles = _parseSpanInlineStyles(innerSpan)!;
210
final topEm = styles.topEm ?? 0;
211
0 commit comments