@@ -48,14 +48,14 @@ export interface Options {
48
48
vueVersion ?: string
49
49
50
50
/**
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
52
52
*
53
53
* @default false
54
54
*/
55
55
headEnabled ?: boolean
56
56
57
57
/**
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
59
59
*
60
60
* When an empty string is passed, it will use the root properties of the frontmatter
61
61
*
@@ -82,7 +82,7 @@ export interface Options {
82
82
/**
83
83
* Remove custom SFC block
84
84
*
85
- * @default ['route']
85
+ * @default ['route', 'i18n' ]
86
86
*/
87
87
customSfcBlocks ?: string [ ]
88
88
@@ -106,7 +106,10 @@ export interface Options {
106
106
*/
107
107
frontmatterPreprocess ?: (
108
108
frontmatter : Frontmatter ,
109
- options : ResolvedOptions
109
+ options : ResolvedOptions ,
110
+ id : string ,
111
+ defaultHeadProcess : any ,
112
+ // defaultHeadProcess: typeof preprocessHead,
110
113
) => {
111
114
head : Record < string , any >
112
115
frontmatter : Frontmatter
@@ -159,14 +162,14 @@ export interface Options {
159
162
*
160
163
* @default 'markdown-body'
161
164
*/
162
- wrapperClasses ?: string | string [ ]
165
+ wrapperClasses ?: string | string [ ] | undefined | null | ( ( id : string , code : string ) => string | string [ ] | undefined | null )
163
166
164
167
/**
165
168
* Component name to wrapper with
166
169
*
167
170
* @default undefined
168
171
*/
169
- wrapperComponent ?: string | undefined | null
172
+ wrapperComponent ?: string | undefined | null | ( ( id : string , code : string ) => string | undefined | null )
170
173
171
174
/**
172
175
* Custom transformations apply before and after the markdown transformation
0 commit comments