From a0bf25dcafabceea75551ea2e4fd5f84ad53e0e1 Mon Sep 17 00:00:00 2001 From: HowieHz Date: Fri, 10 Jan 2025 18:23:06 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8F=AF=E4=BF=9D=E7=95=99=E5=BC=95?= =?UTF-8?q?=E7=94=A8=E5=9D=97=E4=B8=AD=E7=9A=84=E7=A9=BA=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 +++-- i18n-settings/settings.en.yaml | 10 ++++++++++ settings.yaml | 10 ++++++++++ templates/fragments/layout.html | 15 +++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d0b2c5..298a6fb 100644 --- a/README.md +++ b/README.md @@ -252,8 +252,9 @@ 10. 允许设定是否强制页脚在页面最底部 11. 允许关闭页面底部菜单 12. 允许添加内容到页脚最底部 -13. 允许在引用块前添加引号(引用块在 Markdown 中使用 > 表示) -14. 允许在引用块后添加引号(引用块在 Markdown 中使用 > 表示) +13. 允许保留引用块中的空行 +14. 允许在引用块前添加引号(引用块在 Markdown 中使用 > 表示) +15. 允许在引用块后添加引号(引用块在 Markdown 中使用 > 表示) #### 增加于“首页样式” diff --git a/i18n-settings/settings.en.yaml b/i18n-settings/settings.en.yaml index 4c2c430..4859047 100644 --- a/i18n-settings/settings.en.yaml +++ b/i18n-settings/settings.en.yaml @@ -461,6 +461,16 @@ spec: label: Footer content at the bottom (support html code block) language: html height: 150px + - $formkit: radio + name: is_preserve_empty_lines_in_blockquote + label: Preserve empty lines in blockquote + value: true + options: + - label: Enable + value: true + - label: Disable + value: false + help: "If enabled, empty lines in blockquotes will be preserved; otherwise, they will be automatically removed. Blockquotes are represented by the > symbol in Markdown." - $formkit: radio name: is_show_the_quote_before_blockquote label: Show the quote before Blockquote diff --git a/settings.yaml b/settings.yaml index ed3c074..8b01a0a 100644 --- a/settings.yaml +++ b/settings.yaml @@ -461,6 +461,16 @@ spec: label: 页脚最底部内容(支持 html 代码块) language: html height: 150px + - $formkit: radio + name: is_preserve_empty_lines_in_blockquote + label: 引用块保留空行 + value: true + options: + - label: 开启 + value: true + - label: 关闭 + value: false + help: 如启用此项,将在保留引用块中的空行,否则将自动删除引用块中的空行。引用块在 Markdown 中使用 > 表示。 - $formkit: radio name: is_show_the_quote_before_blockquote label: 引用块前添加引号 diff --git a/templates/fragments/layout.html b/templates/fragments/layout.html index 172006f..a25a255 100644 --- a/templates/fragments/layout.html +++ b/templates/fragments/layout.html @@ -361,6 +361,21 @@ /*[(${theme.config?.styles?.content_width_style})]*/ fit-content; } +