#Can I add custom tags to md?

10 messages · Page 1 of 1 (latest)

quartz compass
#

I want to do something like this <quote>"I know today won’t come again, but I'm betting that tomorrow will."</quote>

<quote> is not a tag recognized by html. But am I able to basically add a <slot> with whatever is in there so I can style it separately?

Ideally I'd like a custom Svelte component to render the contents. Sorry if I'm miswording this or not being clear.

#

I feel like I've done this in the past but I checked old repos and couldn't find anything. Any help is great, thanks !

willow patio
willow patio
quartz compass
#

If I have to use react it’s not a big deal

willow patio
#

So if you can import it in an .astro file, you should be able to do the same in .mdx as well