From 65b69b5efab3bb52555080b484bc1e52ceca20f0 Mon Sep 17 00:00:00 2001 From: Oxbian Date: Mon, 2 Dec 2024 15:04:18 -0500 Subject: fix: bold in text not working + sorted data not passed to functions --- markdown_parser.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'markdown_parser.py') 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("*", "", 1) - line = line.replace("*", "", 1) while "**" in line: line = line.replace("**", "", 1) line = line.replace("**", "", 1) + while "*" in line: + line = line.replace("*", "", 1) + line = line.replace("*", "", 1) + # Checking if there is image while "![" in line and "]" in line: -- cgit v1.2.3