Spaces:
Running
Running
Fix more unescaped Markdown
Browse files
app.py
CHANGED
|
@@ -13,8 +13,9 @@ def landing():
|
|
| 13 |
|
| 14 |
def show_token(token):
|
| 15 |
token_display = token.replace('\n', '↵').replace('\t', '⇥')
|
| 16 |
-
|
| 17 |
-
|
|
|
|
| 18 |
return token_display
|
| 19 |
|
| 20 |
|
|
|
|
| 13 |
|
| 14 |
def show_token(token):
|
| 15 |
token_display = token.replace('\n', '↵').replace('\t', '⇥')
|
| 16 |
+
# Escape Markdown
|
| 17 |
+
for c in "\\`*_{}[]()#+-.!":
|
| 18 |
+
token_display = token_display.replace(c, "\\" + c)
|
| 19 |
return token_display
|
| 20 |
|
| 21 |
|