Skip to content

Commit edccccb

Browse files
committed
Have math rewrite patterns NOT distinguish between text and display style
1 parent 6692995 commit edccccb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/LaTeXML/Core/Rewrite.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,9 @@ sub domToXPath {
420420
return ($xpath, $nnodes, @wilds); }
421421

422422
# May need some work here;
423-
my %EXCLUDED_MATCH_ATTRIBUTES = (scriptpos => 1, 'xml:id' => 1, fontsize => 1); # [CONSTANT]
423+
my %EXCLUDED_MATCH_ATTRIBUTES = (
424+
scriptpos => 1, mathstyle => 1,
425+
'xml:id' => 1, fontsize => 1); # [CONSTANT]
424426

425427
sub domToXPath_rec {
426428
my ($document, $node, $axis, $pos) = @_;

0 commit comments

Comments
 (0)