Header sizes

main
Bob Mottram 2025-12-07 18:00:39 +00:00
parent 3afaaa51ae
commit 2ba778b4c1
1 changed files with 5 additions and 5 deletions

10
blog.py
View File

@ -203,11 +203,11 @@ def html_blog_post_markdown(content: str) -> str:
""" """
replacements = { replacements = {
"># ": "h3", "># ": "h3",
">## ": "h4", ">## ": "h3",
">### ": "h5", ">### ": "h3",
">#### ": "h6", ">#### ": "h4",
">##### ": "h7", ">##### ": "h5",
">###### ": "h8" ">###### ": "h6"
} }
new_content = content new_content = content
for markdown_text, html_header in replacements.items(): for markdown_text, html_header in replacements.items():