mirror of https://gitlab.com/bashrc2/epicyon
Header sizes
parent
3afaaa51ae
commit
2ba778b4c1
10
blog.py
10
blog.py
|
|
@ -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():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue