mirror of https://gitlab.com/bashrc2/epicyon
Alternative ending for markdown headers
parent
96cda1b343
commit
b965589dc3
3
blog.py
3
blog.py
|
|
@ -224,6 +224,9 @@ def _html_blog_post_markdown(content: str) -> str:
|
|||
if '<' in section:
|
||||
section = '<' + html_header + '>' + \
|
||||
section.replace('<', '</' + html_header + '><', 1)
|
||||
elif '\n' in section:
|
||||
section = '<' + html_header + '>' + \
|
||||
section.replace('\n', '</' + html_header + '>\n', 1)
|
||||
else:
|
||||
section = markdown_text + section
|
||||
new_content2 += section
|
||||
|
|
|
|||
Loading…
Reference in New Issue