From 176c076b2f380e0b0f7f406be74b7d8fc39b07bc Mon Sep 17 00:00:00 2001 From: Bob van de Vijver Date: Sun, 2 Jul 2023 20:59:09 +0200 Subject: [PATCH] Add as tag to be parsed to \textit{} --- src/Helper/Parser.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Helper/Parser.php b/src/Helper/Parser.php index 71b433c..8f4334d 100644 --- a/src/Helper/Parser.php +++ b/src/Helper/Parser.php @@ -257,6 +257,7 @@ public static function parseHtml($text) { self::updateNode($DOM, 'b', '\textbf{'); self::updateNode($DOM, 'strong', '\textbf{'); self::updateNode($DOM, 'i', '\textit{'); + self::updateNode($DOM, 'em', '\textit{'); self::updateNode($DOM, 'u', '\uline{'); self::updateNode($DOM, 'sup', '\textsuperscript{'); self::updateNode($DOM, 'sub', '\textsubscript{');