diff options
author | Oxbian <oxbian@mailbox.org> | 2024-12-02 15:04:18 -0500 |
---|---|---|
committer | Oxbian <oxbian@mailbox.org> | 2024-12-02 15:04:18 -0500 |
commit | 65b69b5efab3bb52555080b484bc1e52ceca20f0 (patch) | |
tree | 475be0e052d4fbb44c272ba8e2225c8b8001e396 /markdown_parser.py | |
parent | 572b4ef237de3e98fd94ba96800b4fffb73233fa (diff) | |
download | blog-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.py | 7 |
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: |