fix: fix define config
This commit is contained in:
parent
27bd8d31c0
commit
00bca40d89
@ -1,7 +1,7 @@
|
||||
import type { UserConfig } from '@vuepress/cli'
|
||||
import type { BundlerConfig } from '@vuepress/core'
|
||||
import type {
|
||||
PlumeThemeNotesConfigItem,
|
||||
PlumeThemeNotesItem,
|
||||
PlumeThemeNotesOptions,
|
||||
PlumeThemeOptions,
|
||||
} from '../shared'
|
||||
@ -17,5 +17,5 @@ export const definePlumeNotesConfig = (
|
||||
): PlumeThemeNotesOptions => notes
|
||||
|
||||
export const definePlumeNotesItemConfig = (
|
||||
item: PlumeThemeNotesConfigItem
|
||||
): PlumeThemeNotesConfigItem => item
|
||||
item: PlumeThemeNotesItem
|
||||
): PlumeThemeNotesItem => item
|
||||
|
||||
@ -7,13 +7,16 @@ export const resolveMarkdownEnhance = (
|
||||
): PluginConfig => {
|
||||
if (plugins.markdownEnhance === false) return ['', false]
|
||||
return mdEnhance(
|
||||
plugins.markdownEnhance || {
|
||||
container: true, // info note tip warning danger details
|
||||
codegroup: true,
|
||||
align: true,
|
||||
mark: true,
|
||||
tasklist: true,
|
||||
demo: true,
|
||||
}
|
||||
Object.assign(
|
||||
{
|
||||
container: true, // info note tip warning danger details
|
||||
codegroup: true,
|
||||
align: true,
|
||||
mark: true,
|
||||
tasklist: true,
|
||||
demo: true,
|
||||
},
|
||||
plugins.markdownEnhance || {}
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user