Escape '=' to produce valid markdown (#1)

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2021-03-25 10:39:11 +01:00
parent 0cd101954c
commit df5296af42
No known key found for this signature in database
GPG key ID: FF42D23B580C89F7

View file

@ -73,7 +73,7 @@ def setup_logging(args):
def markdown_escape(text):
for special_char in ['\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '#', '+', '-', '.', '!']:
for special_char in ['\\', '`', '*', '_', '{', '}', '[', ']', '(', ')', '#', '+', '-', '.', '!', '=']:
text = text.replace(special_char, fr'\{special_char}')
return text