diff --git a/src/renderer/plugins/build-in-renderers.ts b/src/renderer/plugins/build-in-renderers.ts index 7d5b0a4e9..b301573eb 100644 --- a/src/renderer/plugins/build-in-renderers.ts +++ b/src/renderer/plugins/build-in-renderers.ts @@ -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.' : '')]) ] }, })