How to use ToC with ContentRendererMarkdown? #2830
Unanswered
gitFoxCode
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm using nuxt-content to generate articles, but in some articles, I wanted to fetch a value from another article. Everything works correctly except for generating the ToC – useContent() ignores everything that is fetched from useAsyncData. How can I change this/delay the ToC generation until useAsyncData has completed (because I think that's where the problem lies)?
Example:
GetCustom.vue:
MainArticle.md
:/external-markdown-files/article1.md
:ToC from
const { toc } = useContent()
only includes headings from MainArticle.md (## Some heading)Beta Was this translation helpful? Give feedback.
All reactions