aboutsummaryrefslogtreecommitdiff
path: root/markdown_renderer.py
diff options
context:
space:
mode:
Diffstat (limited to 'markdown_renderer.py')
-rw-r--r--markdown_renderer.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/markdown_renderer.py b/markdown_renderer.py
index 21bd5a0..bd05bae 100644
--- a/markdown_renderer.py
+++ b/markdown_renderer.py
@@ -53,14 +53,14 @@ def md_to_html(raw_content: str, text_mode: bool = False) -> str:
section_class = ' class="text-section"'
section_class_only = ' text-section'
- html_text = html_text.replace("<p>+-+-+-</p>", f'<section{section_class}><div class="center-grid"><div class="div-sizing">')
- html_text = html_text.replace("<p>+-+-+-", f'<section{section_class}><div class="center-grid"><div class="div-sizing">')
- html_text = html_text.replace("+-+-+-</p>", f'<section{section_class}><div class="center-grid"><div class="div-sizing">')
- html_text = html_text.replace("-+-+-+</p>", "</div></div></section>")
- html_text = html_text.replace("<p>-+-+-+", "</div></div></section>")
- html_text = html_text.replace("<p>+=+=+=</p>", f'<section class="normal-section{section_class_only}"><div class="center-grid"><div class="div-sizing">')
- html_text = html_text.replace("<p>+=+=+=", f'<section class="normal-section{section_class_only}"><div class="center-grid"><div class="div-sizing">')
- html_text = html_text.replace("+=+=+=</p>", f'<section class="normal-section{section_class_only}"><div class="center-grid"><div class="div-sizing">')
+ html_text = html_text.replace("<p>+-+-+-</p>", f'<section{section_class}><div class="div-sizing">')
+ html_text = html_text.replace("<p>+-+-+-", f'<section{section_class}><div class="div-sizing">')
+ html_text = html_text.replace("+-+-+-</p>", f'<section{section_class}><div class="div-sizing">')
+ html_text = html_text.replace("-+-+-+</p>", "</div></section>")
+ html_text = html_text.replace("<p>-+-+-+", "</div></section>")
+ html_text = html_text.replace("<p>+=+=+=</p>", f'<section class="normal-section{section_class_only}"><div class="div-sizing">')
+ html_text = html_text.replace("<p>+=+=+=", f'<section class="normal-section{section_class_only}"><div class="div-sizing">')
+ html_text = html_text.replace("+=+=+=</p>", f'<section class="normal-section{section_class_only}"><div class="div-sizing">')
html_text = html_text.replace("<p>{{{</p>", '<div class="flex-container flex-container-dynamic gap-row">')
html_text = html_text.replace("<p>{{{", '<div class="flex-container flex-container-dynamic gap-row">')
html_text = html_text.replace("{{{</p>", '<div class="flex-container flex-container-dynamic gap-row">')