re: Introducing mdjs - interactive demos everywhere VIEW POST

re: Interesting concept. Digging the simplicity of the execution, thoughtfulness towards backwards (and code editor) compatibility, lots of cool stuff ...

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 inside components" mean? care to elaborate πŸ€—
The only guess I have is that you mean it does not support jsx? if so yes that is currently true - although if needed we could introduce a jsx story which could support it πŸ€”


Oops. Meant β€œWrite” πŸ˜… phone autocorrected I guess.

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


# 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 πŸ‘Œ


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

<summary>Example config</summary>

## Details for the config
Some text


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

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

## Details for the config
Some text


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

code of conduct - report abuse