aboutsummaryrefslogtreecommitdiff
path: root/markdown_renderer.py
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-07-06 14:42:11 +0800
committeraltaf-creator <dev@altafcreator.com>2026-07-06 14:42:11 +0800
commit0ae3871f1c4a31896902f3370c57ab19ded1df4a (patch)
treeabf266a2aaecc44a2303ff532b6c2cab31e2841f /markdown_renderer.py
parent6c62efb718e46d88514ebf407b46713fdb922650 (diff)
style refinements
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">')