changed some css

This commit is contained in:
Winter 2024-05-21 12:13:09 -07:00
parent cd56e51ccb
commit 001114251e
2 changed files with 4 additions and 12 deletions

View File

@ -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)))))

View File

@ -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;