feat: add list marker setting

This commit is contained in:
Erzbir
2026-06-15 22:32:30 +08:00
parent 5c5a8956f1
commit 9f6165e787
2 changed files with 22 additions and 0 deletions
+17
View File
@@ -72,6 +72,23 @@ spec:
placeholder: "calc(var(--size-theme-font) * 2.5)" placeholder: "calc(var(--size-theme-font) * 2.5)"
help: 控制正文容器内边距, 例如 2rem / 24px / calc(var(--size-theme-font) * 2), 留空使用主题默认值 help: 控制正文容器内边距, 例如 2rem / 24px / calc(var(--size-theme-font) * 2), 留空使用主题默认值
- $formkit: select
label: 无序列表标记
name: list_marker
value: ""
help: 控制文章中无序列表项前的标记, 留空使用主题默认值
options:
- label: "default"
value: ""
- label: "-"
value: '"-"'
- label: "*"
value: '"*"'
- label: "+"
value: '"+"'
- label: ">"
value: '">"'
- $formkit: checkbox - $formkit: checkbox
label: 使用系统字体 label: 使用系统字体
name: system_font_enable name: system_font_enable
+5
View File
@@ -153,6 +153,11 @@
--spacing-theme-container-padding-mobile: [(${theme.config.style.content_padding})]; --spacing-theme-container-padding-mobile: [(${theme.config.style.content_padding})];
} }
</style> </style>
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.list_marker)}" th:inline="css">
:root {
--list-theme-marker: [(${theme.config.style.list_marker})];
}
</style>
<script no-pjax> <script no-pjax>
window.TerminalTheme?.applyCustomCss?.(); window.TerminalTheme?.applyCustomCss?.();
</script> </script>