From e26d1c7e74272f3efe1efe3325df6709fd14c60d Mon Sep 17 00:00:00 2001 From: ZhenShuo Leo <98386542+ZhenShuo2021@users.noreply.github.com> Date: Thu, 29 May 2025 01:46:50 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore:=20move=20markup=20config?= =?UTF-8?q?=20to=20markup.toml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/hugo.toml | 9 --------- config/_default/markup.toml | 11 +++++++++-- exampleSite/config/_default/markup.toml | 11 +++++++++-- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 6100a56c..85d63a1a 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -67,12 +67,3 @@ enableEmoji = true name = 'fragmentrefs' type = 'fragments' weight = 10 - -[markup] - [markup.goldmark] - [markup.goldmark.extensions] - [markup.goldmark.extensions.passthrough] - enable = true - [markup.goldmark.extensions.passthrough.delimiters] - block = [['\[', '\]'], ['$$', '$$']] - inline = [['\(', '\)']] diff --git a/config/_default/markup.toml b/config/_default/markup.toml index c5449fc3..fccbfcc2 100644 --- a/config/_default/markup.toml +++ b/config/_default/markup.toml @@ -2,8 +2,15 @@ # These settings are required for the theme to function. [goldmark] -[goldmark.renderer] - unsafe = true + [goldmark.renderer] + unsafe = true + + [goldmark.extensions] + [goldmark.extensions.passthrough] + enable = true + [goldmark.extensions.passthrough.delimiters] + block = [['\[', '\]'], ['$$', '$$']] + inline = [['\(', '\)']] [highlight] noClasses = false diff --git a/exampleSite/config/_default/markup.toml b/exampleSite/config/_default/markup.toml index c5449fc3..fccbfcc2 100644 --- a/exampleSite/config/_default/markup.toml +++ b/exampleSite/config/_default/markup.toml @@ -2,8 +2,15 @@ # These settings are required for the theme to function. [goldmark] -[goldmark.renderer] - unsafe = true + [goldmark.renderer] + unsafe = true + + [goldmark.extensions] + [goldmark.extensions.passthrough] + enable = true + [goldmark.extensions.passthrough.delimiters] + block = [['\[', '\]'], ['$$', '$$']] + inline = [['\(', '\)']] [highlight] noClasses = false