Skip to content

Commit 29ae940

Browse files
committed
Merge branch 'develop'
2 parents 996183e + 5ce9bf6 commit 29ae940

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/utils/markdown.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def convert_pre(self, el, text, convert_as_inline):
4040
return ('\n' if not after_paragraph else '') + f"```{self.options['code_language']}\n{unescaped_text}\n```\n\n"
4141

4242
def convert_sub(self, el, text, convert_as_inline):
43-
return f'_{text}'
43+
return f'_{text}' if text.strip() else text
4444

4545
def convert_sup(self, el, text, convert_as_inline):
4646
return f'^{text}'

0 commit comments

Comments
 (0)