diff --git a/page-handler.fnl b/page-handler.fnl index b8f1431..721101f 100644 --- a/page-handler.fnl +++ b/page-handler.fnl @@ -12,7 +12,7 @@ (local html-template (with-open [html-template-file (io.open :template.html :r)] (html-template-file:read :*a))) - (local html (cmark.markdown_to_html markdown (markdown:len) cmark.OPT_UNSAFE)) + (local html (cmark.markdown_to_html markdown (markdown:len) (+ cmark.OPT_HARDBREAKS cmark.OPT_UNSAFE))) (tset _G.files (file:match "(.+)%..+") (html-template:format html))))) diff --git a/style.css b/style.css index 9e97f9b..74a38d2 100644 --- a/style.css +++ b/style.css @@ -109,14 +109,10 @@ body>.content>main { /* paragraphs */ p { - margin: 0; + margin: 1em 0; color: var(--accent-50); } - p+p { - margin-top: 1em; - } - /* headings */ h1, h2, @@ -144,7 +140,7 @@ body>.content>main { /* block qutoes */ blockquote { - display: inline-block; + display: block; margin: 0 1em; border-left: 0.2em solid var(--accent-40); padding-left: 0.5em; @@ -168,7 +164,7 @@ body>.content>main { /* horizontal rule */ hr { - margin: 0; + margin: 1em 0; border: none; border-bottom: 0.1em solid var(--accent-50); } @@ -186,10 +182,6 @@ body>.content>main { } /* code blocks */ - p+pre { - margin-top: 1em; - } - pre { display: inline-block; margin: 0;