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