Open stefanprobst opened 4 months ago
Since you are using ContentRenderer
you need to provide an #empty
slot to fallback in case the markdown body is empty: https://content.nuxt.com/components/content-renderer#slots
thanks for pointing to that section in the docs!
however, the wording is a bit ambiguous and it's still not 100% clear to me whether i must provide an #empty
slot, or if this is a bug ("The empty slot can be used to display a default content when the document is empty").
Environment
Reproduction
https://github.com/stefanprobst/issue-nuxt-content
Describe the bug
for a markdown file with an empty body (see this one in the issue repro), i get the following error:
instead, i would expect an empty div.
Additional context
No response
Logs
No response