Skip to content

Commit 4d67c41

Browse files
committed
Remove "display: block" behavior from <tex> whose parent is <body>
1 parent 2eedb3a commit 4d67c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/replaced_element.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class MathElement extends ReplacedElement {
281281
texStr = parseMathRecursive(element, r'');
282282
}
283283
return Container(
284-
width: element.localName == "math" || element.parent!.localName == "body" ?
284+
width: element.localName == "math" ?
285285
MediaQuery.of(context.buildContext).size.width : null,
286286
child: Math.tex(
287287
texStr ?? '',

0 commit comments

Comments
 (0)