aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/_default/single.gmi1
-rw-r--r--static/css/style.css5
2 files changed, 5 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index ae4fc3c..39a6cb5 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -3,6 +3,7 @@
{{ $content := .RawContent }}
+{{- $content = $content | replaceRE `\n####{0,3}` "\n###" }}
{{- $content = $content | replaceRE `\n\[(.+?)\]\((.+?)\)` "\n=> $2 $1" }}
{{- $content = $content | replaceRE `\*{3}(.+?)\*{3}|\*{2}(.+?)\*{2}|\*{1}(.+?)\*{1}` "$1$2$3$4$5$6" }}
{{- $content = $content | replaceRE `\n- (.+?)` "\n* $1" }}
diff --git a/static/css/style.css b/static/css/style.css
index 259c5d0..913eab6 100644
--- a/static/css/style.css
+++ b/static/css/style.css
@@ -39,7 +39,10 @@ body {
h1 { color: #ff0000; font-size: 22px; }
h2 { color: #66ff00; font-size: 20px; }
-h3 { color: #ff007f; font-size: 18px;}
+h3 { color: #ff007f; font-size: 18px; }
+h4 { color: #ff007f; font-size: 18px; }
+h5 { color: #ff007f; font-size: 18px; }
+h6 { color: #ff007f; font-size: 18px; }
p {
overflow-wrap: break-word;