From 7aaeb0d7977029cc42be6c731b7d9d6d6e648527 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 7 Dec 2025 17:41:39 +0000 Subject: [PATCH] bold rather than headers --- blog.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/blog.py b/blog.py index ef2f2993f..ab044246e 100644 --- a/blog.py +++ b/blog.py @@ -210,7 +210,7 @@ def html_blog_post_markdown(content: str) -> str: ">###### ": "h6" } new_content = content - for markdown_text, html_header in replacements.items(): + for markdown_text, _ in replacements.items(): if markdown_text not in new_content: continue sections = new_content.split(markdown_text) @@ -222,11 +222,9 @@ def html_blog_post_markdown(content: str) -> str: ctr += 1 continue if '<' in section: - section = '><' + html_header + '>' + \ - section.replace('<', '<', 1) + section = '>' + section.replace('<', '<', 1) elif '\n' in section: - section = '><' + html_header + '>' + \ - section.replace('\n', '\n', 1) + section = '>' + section.replace('\n', '\n', 1) else: section = markdown_text + section new_content2 += section