I want to create accordion component for nuxt-content markdown. I thought it would use NuxtUI Accordion (https://ui.nuxt.com/components/accordion) I would like every H2 to be turned into a title in accordion and the rest of the content to be hidden to make markdown look normal, like here:
::accordion## This is accordion titleThis is accordion **content**1. something2. something2## New title hereHello world## EndSomething here too::
::accordion## This is accordion titleThis is accordion **content**1. something2. something2## New title hereHello world## EndSomething here too::
Or if it is possible to create multiple slots simultaneously:
::accordion#titleThis is **FAQ** title 1#contentThis is content for FAQ-1#titleThis is FAQ title 2#contentThis is content for FAQ-2?::
::accordion#titleThis is **FAQ** title 1#contentThis is content for FAQ-1#titleThis is FAQ title 2#contentThis is content for FAQ-2?::
But I don't know how to get to the slots in the normal way, I tried: