Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 21, 2023
1 parent 452f9a6 commit 170a793
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function createMarkdown(options: ResolvedOptions) {

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

if (options.exportFontmatter) {
if (options.exportFrontmatter) {
frontmatterExportsLines = Object.entries(frontmatter)
.map(([key, value]) => {
if (EXPORTS_KEYWORDS.includes(key))
Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function resolveOptions(userOptions: Options): ResolvedOptions {
excerpt: false,
exposeFrontmatter: true,
exposeExcerpt: false,
exportFontmatter: true,
exportFrontmatter: true,
escapeCodeTagInterpolation: true,
customSfcBlocks: ['route', 'i18n', 'style'],
componentOptions: {},
Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export interface Options {
*
* @default true
*/
exportFontmatter?: boolean
exportFrontmatter?: boolean

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

0 comments on commit 170a793

Please sign in to comment.