diff --git a/lib/LaTeXML/Package/siunitx.sty.ltxml b/lib/LaTeXML/Package/siunitx.sty.ltxml index 95c5e898d..df3796c1e 100644 --- a/lib/LaTeXML/Package/siunitx.sty.ltxml +++ b/lib/LaTeXML/Package/siunitx.sty.ltxml @@ -389,6 +389,7 @@ sub six_apply_mathligatures { my $repl; if (@tokens && ($repl = $six_mathligatures{ $t->getCSName }{ $tokens[0]->getCSName })) { shift(@tokens); push(@r, $repl); } + elsif ($t->getCatcode == CC_COMMENT) { } else { push(@r, $t); } } return @r; }