From 0ae3871f1c4a31896902f3370c57ab19ded1df4a Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Mon, 6 Jul 2026 14:42:11 +0800 Subject: style refinements --- markdown_renderer.py | 16 ++++++++-------- style.css | 8 ++++++++ 2 files changed, 16 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("

+-+-+-

", f'
') - html_text = html_text.replace("

+-+-+-", f'

') - html_text = html_text.replace("+-+-+-

", f'
') - html_text = html_text.replace("-+-+-+

", "
") - html_text = html_text.replace("

-+-+-+", "

") - html_text = html_text.replace("

+=+=+=

", f'
') - html_text = html_text.replace("

+=+=+=", f'

') - html_text = html_text.replace("+=+=+=

", f'
') + html_text = html_text.replace("

+-+-+-

", f'
') + html_text = html_text.replace("

+-+-+-", f'

') + html_text = html_text.replace("+-+-+-

", f'
') + html_text = html_text.replace("-+-+-+

", "
") + html_text = html_text.replace("

-+-+-+", "

") + html_text = html_text.replace("

+=+=+=

", f'
') + html_text = html_text.replace("

+=+=+=", f'

') + html_text = html_text.replace("+=+=+=

", f'
') html_text = html_text.replace("

{{{

", '
') html_text = html_text.replace("

{{{", '

') html_text = html_text.replace("{{{

", '
') diff --git a/style.css b/style.css index 4fa6de6..6e354a7 100644 --- a/style.css +++ b/style.css @@ -92,6 +92,10 @@ p { line-height: 1.5rem; } +img { + max-width: 100%; +} + h1 { font-family: "JetBrains Mono"; font-size: 2.5rem; @@ -139,6 +143,10 @@ h6 { padding: 16px; } +#file-content { + max-width: 800px; +} + .list-container { display: flex; flex-direction: column; -- cgit v1.2.3