Bot correction markdown and logic mistake in updater #172

Merged
FlorianKellermann merged 20 commits from bot into main 2022-05-10 20:45:53 +00:00
Showing only changes of commit c6352c5f75 - Show all commits

View File

@ -34,7 +34,7 @@ def make_markdown_proof(text): # used to avoid errors related to markdown parsem
""" """
text = str(text) text = str(text)
text = text.replace("_", "\\_") text = text.replace("_", "\\_") # replace _ with \_ because \ is used as escape character in markdown, double escape is needed because \ is also a escape character in strings
text = text.replace("*", "\\*") text = text.replace("*", "\\*")
text = text.replace("`", "\\`") text = text.replace("`", "\\`")
text = text.replace("[", "\\[") text = text.replace("[", "\\[")