Syntax for Tabs and TabItems in .md (not .mdx) #2092
-
Hey, Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
👋 Thanks for the feedback and the question.
|
Beta Was this translation helpful? Give feedback.
-
Use web componentsWhen you trust the people that write your markdown you can have allow html on in your markdown <tabs>
<tab-element>
tab 1
</teb-element>
<tab-element>
tab 2
</teb-element>
</tabs> I think you can turn any Astro components into a web component and use it in your md files |
Beta Was this translation helpful? Give feedback.
👋 Thanks for the feedback and the question.
<Tabs>
and<TabsItem>
are only available as components in Starlight. As documented, these components only work by importing them into your MDX files and then rendering it as a JSX tag. Such components are not supported in Markdown files.