Skip to content

Commit

Permalink
fix(markdown-renderer): document reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Apr 18, 2023
1 parent 46f3d79 commit e46309f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/runtime/components/ContentRendererMarkdown.vue
Expand Up @@ -71,15 +71,20 @@ export default defineComponent({
})
}
return { body, debug, tags }
return { debug, tags }
},
render (ctx: any) {
const { tags, tag, value, components, body, debug } = ctx
const { tags, tag, value, excerpt, components, debug } = ctx
if (!body) {
if (!value) {
return null
}
let body = (value?.body || value) as MarkdownNode
if (excerpt && value?.excerpt) {
body = value.excerpt as MarkdownNode
}
const meta: ParsedContentMeta = {
...(value as ParsedContentMeta),
tags: {
Expand Down

0 comments on commit e46309f

Please sign in to comment.