aboutsummaryrefslogtreecommitdiff
path: root/markdown_parser.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_parser.py')
-rw-r--r--markdown_parser.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/markdown_parser.py b/markdown_parser.py
index cb66476..dc61e98 100644
--- a/markdown_parser.py
+++ b/markdown_parser.py
@@ -11,12 +11,13 @@ def parse_line(line):
html.escape(line)
# Checking if there is strong or emphasized
- while "*" in line:
- line = line.replace("*", "<em>", 1)
- line = line.replace("*", "</em>", 1)
while "**" in line:
line = line.replace("**", "<strong>", 1)
line = line.replace("**", "</strong>", 1)
+ while "*" in line:
+ line = line.replace("*", "<em>", 1)
+ line = line.replace("*", "</em>", 1)
+
# Checking if there is image
while "![" in line and "]" in line:
ArKa projects. All rights to me, and your next child right arm.