loading...

re: Introducing mdjs - interactive demos everywhere VIEW POST

TOP OF THREAD FULL DISCUSSION
re: The limitation I see with this method vs MDX is the inability to beat Markdown inside components. I can't really follow ๐Ÿ™ˆwhat does "beat Markdown...
 

Oops. Meant โ€œWriteโ€ ๐Ÿ˜… phone autocorrected I guess.

For example, I do this in MDX projects all the time:

<PageLayout>

# Markdown being parsed inside JSX

Letโ€™s me use components inline, as well as containers for content, while retaining the MD syntax for simpler authoring without writing excessive `<p>` tags ๐Ÿ‘Œ

</PageLayout>

Should work the same with Web Components if they have slots?

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>

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>

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

code of conduct - report abuse