Skip to content

Commit 170a793

Browse files
committedJul 21, 2023
fix: typo
1 parent 452f9a6 commit 170a793

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎src/markdown.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export function createMarkdown(options: ResolvedOptions) {
172172

173173
scriptLines.push(`const frontmatter = ${JSON.stringify(frontmatter)}`)
174174

175-
if (options.exportFontmatter) {
175+
if (options.exportFrontmatter) {
176176
frontmatterExportsLines = Object.entries(frontmatter)
177177
.map(([key, value]) => {
178178
if (EXPORTS_KEYWORDS.includes(key))

‎src/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export function resolveOptions(userOptions: Options): ResolvedOptions {
99
excerpt: false,
1010
exposeFrontmatter: true,
1111
exposeExcerpt: false,
12-
exportFontmatter: true,
12+
exportFrontmatter: true,
1313
escapeCodeTagInterpolation: true,
1414
customSfcBlocks: ['route', 'i18n', 'style'],
1515
componentOptions: {},

‎src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export interface Options {
137137
*
138138
* @default true
139139
*/
140-
exportFontmatter?: boolean
140+
exportFrontmatter?: boolean
141141

142142
/**
143143
* Add `v-pre` to `<code>` tag to escape curly brackets interpolation

0 commit comments

Comments
 (0)
Please sign in to comment.