fix: bring back styling for regular lists
This commit is contained in:
parent
94b6af35e2
commit
dbb09e7fb4
2 changed files with 10 additions and 10 deletions
|
|
@ -28,10 +28,7 @@ export const markdownLib = markdownIt({
|
|||
class: 'heading-anchor'
|
||||
})
|
||||
})
|
||||
.use(markdownItClass, {
|
||||
ol: 'list',
|
||||
ul: 'list'
|
||||
})
|
||||
.use(markdownItClass, {})
|
||||
.use(markdownItLinkAttributes, [
|
||||
{
|
||||
// match external links
|
||||
|
|
|
|||
|
|
@ -55,12 +55,7 @@
|
|||
/* block space only for "regular lists" and sublists */
|
||||
.prose :is(ul, ol):not([class]) li + li,
|
||||
.prose :is(ul, ol):not([class]) li > :is(ol, ul) {
|
||||
--flow-space: var(--space-s-m);
|
||||
}
|
||||
|
||||
/* inline space only for "regular lists" */
|
||||
.prose :is(ul:not([class]), ol:not(.grid)) {
|
||||
padding-inline-start: 1.2ch;
|
||||
padding-block-start: var(--space-s);
|
||||
}
|
||||
|
||||
/* marker only for "regular lists" */
|
||||
|
|
@ -69,6 +64,14 @@
|
|||
content: '– ';
|
||||
}
|
||||
|
||||
.prose ul:not([class]) {
|
||||
padding-inline-start: 1.3ch;
|
||||
}
|
||||
|
||||
.prose ol:not([class]) {
|
||||
padding-inline-start: 2ch;
|
||||
}
|
||||
|
||||
.prose ol li::marker {
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue