content icon indicating copy to clipboard operation
content copied to clipboard

Parse heading links from custom content components

Open stijns96 opened this issue 4 months ago • 2 comments

Is your feature request related to a problem? Please describe

We try to sort of automate the docs by fetching files from the public folder. To do this I've created a SnippetDocs component that fetches a .liquid file and automatically extract example, params and description from it's content. For these 3 items I want to add headings to my markdown as well. This is all working perfectly, but the headings are not added to the page.body.toc.links array from the queryCollection composable.

Describe the solution you'd like

Generate links from headings in custom content components that are rendered with e.g. <MDC /> or <MDCRenderer />

Describe alternatives you've considered

Additional context

stijns96 avatar Aug 14 '25 07:08 stijns96

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Oct 13 '25 07:10 github-actions[bot]

Any update?

stijns96 avatar Oct 13 '25 08:10 stijns96

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Dec 12 '25 09:12 github-actions[bot]

Any thoughts?

stijns96 avatar Dec 12 '25 09:12 stijns96