Skip to content

Commit 040532f

Browse files
committed
fix: math rendering
1 parent 2512022 commit 040532f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pyconverter/xml2py/ast_tree.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1617,7 +1617,8 @@ def tail(self):
16171617

16181618
def to_rst(self, indent="", max_length=100):
16191619
"""Return a string to enable converting the element to an RST format."""
1620-
return f":math:`{self.equation.strip()}` {self.tail}"
1620+
# TODO: ``self.equation.strip()`` needs to be enhanced (check \VCONE function)
1621+
return f":math:``{self.equation.strip()}`` {self.tail}"
16211622

16221623

16231624
class SubScript(Element):

0 commit comments

Comments
 (0)