Skip to content

Commit

Permalink
fix: components reactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
sandros94 committed Mar 5, 2024
1 parent 8143f69 commit 6454893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/composables/use-nuxt-markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export const useNuxtMarkdown = (source: MaybeRefOrGetter<string>, config?: DeepM
const content = computed(() => md.value.render(toValue(source)))

const rendered = () => {
if (configDef.forceHtml || !vueRuntimeCompiler) {
if (toValue(configDef.forceHtml) || !vueRuntimeCompiler) {
return h(configDef.as, { innerHTML: content.value, })
} else {
return h({
components: configDef.components,
components: toValue(configDef.components),
render: compile(content.value),
})
}
Expand Down

0 comments on commit 6454893

Please sign in to comment.