Fixed unit-tests for RST parsing.

This commit is contained in:
Mark Wolfman
2021-04-10 23:34:53 -05:00
parent 2aa5afd538
commit 67adc390cb
3 changed files with 76 additions and 64 deletions
+2
View File
@@ -169,6 +169,8 @@ def rst_to_latex(rst, top_heading_level=0):
# No reST, so return an empty string
tex = ""
else:
# Mark hit dice in monospace font
rst = dice_re.sub(r'``\1``', rst)
tex_parts = latex_parts(rst)
tex = tex_parts['body']
# Check for currently un-supported LaTeX commands