Skip to content

Commit

Permalink
fix: handle empty file case in built-in renderers
Browse files Browse the repository at this point in the history
  • Loading branch information
purocean committed Jan 16, 2025
1 parent 474a27e commit 8fbb1db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/plugins/build-in-renderers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default {
const { h } = ctx.lib.vue
return [
h('h1', env.file?.name),
h('p', [h('em', 'Not a markdown file.')])
h('p', [h('em', env.file ? 'Not a markdown file.' : '')])
]
},
})
Expand Down

0 comments on commit 8fbb1db

Please sign in to comment.