Add support for code syntax highlighting

This commit is contained in:
Neil Brommer 2023-07-07 22:16:57 -07:00
parent ed1a3e3cfa
commit e284972969
9 changed files with 69 additions and 7 deletions

View file

@ -35,6 +35,7 @@ header {
main {
width: 100%;
min-width: 0px;
max-width: 70em;
padding: 2rem;
margin-left: auto;

View file

@ -17,3 +17,17 @@ code {
border: solid 1px var(--primary-border-color);
border-radius: calc(var(--main-border-radius) / 2);
}
pre {
background: var(--code-background);
padding: 1em;
border: solid 1px var(--primary-border-color);
border-radius: calc(var(--main-border-radius) / 2);
code {
background: unset;
padding: unset;
border: unset;
border-radius: unset;
}
}