Try to work around RST problem with bold after a question mark.

This commit is contained in:
Charles Haley 2025-02-15 12:19:24 +00:00
parent f3a93ae19d
commit a83fd3b1fa

View File

@ -389,7 +389,7 @@ class FFMLProcessor:
if tree.node_kind() == NodeKinds.BLANK_LINE:
result += '\n\n'
elif tree.node_kind() == NodeKinds.BOLD_TEXT:
indent_text(f'**{tree.text()}**')
indent_text(("\\ " if result.endswith("?") else "") + f'**{tree.text()}**')
elif tree.node_kind() == NodeKinds.CHARACTER:
result += tree.text()
elif tree.node_kind() == NodeKinds.CODE_BLOCK: