diff --git a/theme/src/node/defaultOptions.ts b/theme/src/node/defaultOptions.ts index 9164b778..3a813158 100644 --- a/theme/src/node/defaultOptions.ts +++ b/theme/src/node/defaultOptions.ts @@ -18,9 +18,10 @@ const defaultLocales: NonNullable = { blog: { pagination: { prevPageText: '上一页', nextPageText: '下一页' } }, - outlineLabel: '内容大纲', + outlineLabel: '此页内容', returnToTopLabel: '返回顶部', editLinkText: '编辑此页', + contributorsText: '贡献者', lastUpdatedText: '上次更新', prevPageLabel: '上一页', nextPageLabel: '下一页', diff --git a/theme/src/node/plugins.ts b/theme/src/node/plugins.ts index 6d53c5d0..157d80c4 100644 --- a/theme/src/node/plugins.ts +++ b/theme/src/node/plugins.ts @@ -161,6 +161,7 @@ export function setupPlugins( { hint: true, // info note tip warning danger details codetabs: true, + tabs: true, align: true, mark: true, tasklist: true, @@ -168,6 +169,8 @@ export function setupPlugins( attrs: true, sup: true, sub: true, + alert: true, + footnote: true, katex: true, } as MarkdownEnhanceOptions, options.markdownEnhance || {}, @@ -175,8 +178,8 @@ export function setupPlugins( )) } - if (options.comment !== false) - plugins.push(commentPlugin(options.comment || {})) + if (options.comment) + plugins.push(commentPlugin(options.comment)) if (options.baiduTongji !== false && options.baiduTongji?.key) plugins.push(baiduTongjiPlugin(options.baiduTongji))