aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--markdown_renderer.py16
-rw-r--r--style.css8
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("<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">')
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;