How to merge TOC of MDC components back into the parent? #3069
Unanswered
adrianrudnik
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
Uh oh!
There was an error while loading. Please reload this page.
-
For a small multi-lingual page I would love to use MDC for shared headlines / sections, something like
similar to the one mentioned in https://content.nuxt.com/docs/components/slot#named-slots, while having a MDC like
While the MDC seems to produce a
toc
element within theast
, it does not seem to be merged back to the page, so the translatedh2
will be missing from the rendered TOC.I've tried all ways I could think of, like this
Example.vue
MDC:with an example markdown file of
but only the
## Test: Markdown
gets inserted into the pages final TOC, while theast
clearly shows that all TOCs have been detected properly.Is this just not supported or am I having a configuration error or doing it just wrong?
Beta Was this translation helpful? Give feedback.
All reactions