What is the `:::tip` syntax in markdown called and how do I use it?

I saw it in the astro docs, but it's not part of the default markdown spec. I tried to search for it, but it's hard to search for special characters.
2 Replies
Samathingamajig
GitHub
docs/astro-asides.ts at main · withastro/docs
Astro documentation. Contribute to withastro/docs development by creating an account on GitHub.
Samathingamajig
found by searching "tip" in the repo remark plugin that converts blocks delimited with ::: into instances of the <Aside> component. Depends on the remark-directive module for the core parsing logic. For example, this Markdown
:::tip[Did you know?]
Astro helps you build faster websites with “Islands Architecture”.
:::
:::tip[Did you know?]
Astro helps you build faster websites with “Islands Architecture”.
:::
will produce this output
<Aside type="tip" title="Did you know?">
<p>Astro helps you build faster websites with “Islands Architecture”.</p>
</Aside>
<Aside type="tip" title="Did you know?">
<p>Astro helps you build faster websites with “Islands Architecture”.</p>
</Aside>
Want results from more Discord servers?
Add your server