aboutsummaryrefslogtreecommitdiff
path: root/markdown_parser.py
diff options
context:
space:
mode:
authorOxbian <oxbian@mailbox.org>2024-12-02 15:04:18 -0500
committerOxbian <oxbian@mailbox.org>2024-12-02 15:04:18 -0500
commit65b69b5efab3bb52555080b484bc1e52ceca20f0 (patch)
tree475be0e052d4fbb44c272ba8e2225c8b8001e396 /markdown_parser.py
parent572b4ef237de3e98fd94ba96800b4fffb73233fa (diff)
downloadblog-generator-65b69b5efab3bb52555080b484bc1e52ceca20f0.tar.gz
blog-generator-65b69b5efab3bb52555080b484bc1e52ceca20f0.zip
fix: bold in text not working + sorted data not passed to functionsmain
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.