Skip to content

Commit fb1be23

Browse files
committed
chore: wip
1 parent 01ddb38 commit fb1be23

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.stacks/core/types/src/markdown.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ export interface Options {
4848
vueVersion?: string
4949

5050
/**
51-
* Enable head support, need to install @vueuse/head and register to App in main.js
51+
* Enable head support, need to install @unhead/vue and register to App in main.js
5252
*
5353
* @default false
5454
*/
5555
headEnabled?: boolean
5656

5757
/**
58-
* The head field in frontmatter used to be used for @vueuse/head
58+
* The head field in frontmatter used to be used for @unhead/vue
5959
*
6060
* When an empty string is passed, it will use the root properties of the frontmatter
6161
*
@@ -82,7 +82,7 @@ export interface Options {
8282
/**
8383
* Remove custom SFC block
8484
*
85-
* @default ['route']
85+
* @default ['route', 'i18n']
8686
*/
8787
customSfcBlocks?: string[]
8888

@@ -106,7 +106,10 @@ export interface Options {
106106
*/
107107
frontmatterPreprocess?: (
108108
frontmatter: Frontmatter,
109-
options: ResolvedOptions
109+
options: ResolvedOptions,
110+
id: string,
111+
defaultHeadProcess: any,
112+
// defaultHeadProcess: typeof preprocessHead,
110113
) => {
111114
head: Record<string, any>
112115
frontmatter: Frontmatter
@@ -159,14 +162,14 @@ export interface Options {
159162
*
160163
* @default 'markdown-body'
161164
*/
162-
wrapperClasses?: string | string[]
165+
wrapperClasses?: string | string[] | undefined | null | ((id: string, code: string) => string | string[] | undefined | null)
163166

164167
/**
165168
* Component name to wrapper with
166169
*
167170
* @default undefined
168171
*/
169-
wrapperComponent?: string | undefined | null
172+
wrapperComponent?: string | undefined | null | ((id: string, code: string) => string | undefined | null)
170173

171174
/**
172175
* Custom transformations apply before and after the markdown transformation

0 commit comments

Comments
 (0)