From f36ec5c30c688938ba72b60d4b1ab4cbcef5a0bc Mon Sep 17 00:00:00 2001 From: dingchao <10026865@qq.com> Date: Fri, 23 May 2025 17:22:57 +0800 Subject: [PATCH] add semantics tag name --- src/Math/Writer/MathML.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Math/Writer/MathML.php b/src/Math/Writer/MathML.php index d8905f0..1b23be6 100644 --- a/src/Math/Writer/MathML.php +++ b/src/Math/Writer/MathML.php @@ -122,6 +122,10 @@ protected function getElementTagName(Element\AbstractElement $element): string return 'mo'; } + if ($element instanceof Element\Semantics) { + return 'semantics'; + } + throw new NotImplementedException(sprintf( '%s : The element of the class `%s` has no tag name', __METHOD__,