summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.py b/app.py
index ce6b042..0beab92 100644
--- a/app.py
+++ b/app.py
@@ -26,8 +26,8 @@ class Markup(object):
def prettify_text(self, text):
html = re.sub('<[^<]+?>', '', text)
- html = re.sub(r"/(\w+)/", '<em>\\1</em>', html)
- html = re.sub(r"\*(\w+)\*", '<strong>\\1</strong>', html)
+ html = re.sub(r"/([\w ]+)/", '<em>\\1</em>', html)
+ html = re.sub(r"\*([\w ]+)\*", '<strong>\\1</strong>', html)
html = re.sub(r"#(\w+)", '<a href="/?filter=' +
self.tagmark + '\\1">#\\1</a>', html)
html = html.replace("\n", "<br />")