You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of overloading the code block language parameter with specimen types, change the Markdown renderer to accept React components. With this in place, we can include specimens as JSX React components, clarifying intent and simplifying configuration/extension possibilities.
To help with this endeavor, we might switch to Remarkable as a Markdown renderer. There is the React Remarkable plugin that in theory should support this out of the box:
<Markdown>
# Catalog example
> A short introduction
## A card
This card shows a specimen:
<HtmlSpecimen>
<button class="button">Button</button>
</HtmlSpecimen>
More content follows
</Markdown>
The text was updated successfully, but these errors were encountered:
But this way, only plain Markdown will be parsed. And as far as I know, this won't change anything because React will see the whole Markdown content as one string:
Instead of overloading the code block language parameter with specimen types, change the Markdown renderer to accept React components. With this in place, we can include specimens as JSX React components, clarifying intent and simplifying configuration/extension possibilities.
To help with this endeavor, we might switch to Remarkable as a Markdown renderer. There is the React Remarkable plugin that in theory should support this out of the box:
The text was updated successfully, but these errors were encountered: