Skip to content

Commit a2d9513

Browse files
committed
add for no-unsafe build
1 parent 8f63e3c commit a2d9513

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ fn copy_mathml_recursive(mathml: Element, depth: usize) -> Element {
673673
// Safety: Prevent stack overflow on deeply nested MathML
674674
if depth > 512 {
675675
// Return the element as a leaf if it's too deep to prevent crash
676-
return create_mathml_element(&mathml.document(), name(mathml));
676+
return create_mathml_element(&mathml.document(), as_str!(name(mathml)));
677677
}
678678

679679
// If it represents MathML, the 'Element' can only have Text and Element children along with attributes

0 commit comments

Comments
 (0)