Better OL styling

This commit is contained in:
David Eisinger
2025-02-17 02:06:12 -05:00
parent a301186cfc
commit 685c307462
4 changed files with 15 additions and 23 deletions

View File

@@ -57,28 +57,21 @@ ol {
margin: 0;
padding: 0;
counter-reset: item;
display: grid;
grid-template-columns: auto 1fr;
gap: 1ch;
li {
list-style: none;
display: contents;
overflow-wrap: anywhere;
p {
margin: 0;
}
counter-increment: item;
display: table;
table-layout: fixed;
width: 100%;
}
li::before {
content: counter(item) '.';
counter-increment: item;
}
ol {
gap: 0 1ch;
grid-column: 2;
content: counter(item) ".";
display: table-cell;
padding-right: 1ch;
white-space: nowrap;
width: 3ch;
}
}

View File

@@ -47,7 +47,6 @@
{{- /* Misc. markup fixes */ -}}
{{- $content = $content | replaceRE `<!--more-->\n+` "" -}}
{{- $content = $content | replaceRE `<[/]?span>` "" -}}
{{- $content = $content | replaceRE `(?m)^ >` ">" -}}
{{- $content = $content | replaceRE `(?m)^ \*` "* ⇢" -}}
{{- $content = $content | replaceRE `(?m)^- ` "* " -}}