DEV Community

Discussion on: Introducing mdjs - interactive demos everywhere

dakmor profile image
Thomas Allmer Author

markdown supported usage of HTML right from the start πŸ‘

we use details/summary a lot like this

<details>
<summary>Example config</summary>

## Details for the config
Some text

</details>
Enter fullscreen mode Exit fullscreen mode

and as web components are "normal" html tags they will work just fine as well πŸ‘
e.g. you could do

<my-details>
<my-summary>Example config</my-summary>

## Details for the config
Some text

</my-details>
Enter fullscreen mode Exit fullscreen mode

to bring in your design/ux/animations/...