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.
debugHtmlNode
1 parent 3e80a0d commit cfaf3d2Copy full SHA for cfaf3d2
lib/model/katex.dart
@@ -131,6 +131,8 @@ class _KatexParser {
131
KatexNode _parseSpan(dom.Element element) {
132
// TODO maybe check if the sequence of ancestors matter for spans.
133
134
+ final debugHtmlNode = kDebugMode ? element : null;
135
+
136
// Aggregate the CSS styles that apply, in the same order as the CSS
137
// classes specified for this span, mimicking the behaviour on web.
138
//
@@ -353,7 +355,8 @@ class _KatexParser {
353
355
return KatexNode(
354
356
styles: styles,
357
text: text,
- nodes: spans);
358
+ nodes: spans,
359
+ debugHtmlNode: debugHtmlNode);
360
}
361
362
0 commit comments