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
I wanted to show HTML-tag as text in a title of a Card. Here are my attempts.
Does it work as expected? Can you recommend a better solution?
import { Card, CardGrid } from'@astrojs/starlight/components';
{/* didn't work */}
<Cardtitle="<div>test</div>">
Edit `src/content/docs/index.mdx` to see this page change.
</Card>
{/* unexpectedly didn't work */}
<Cardtitle="<div>test</div>">
Add Markdown or MDX files to `src/content/docs` to create new pages.
</Card>
{/* did it */}
<Cardtitle={'<div>test</div>'}>
Edit your `sidebar` and other config in `astro.config.mjs`.
</Card>
What version of
starlight
are you using?^0.29.2
What version of
astro
are you using?^4.16.10
What package manager are you using?
npm
What operating system are you using?
Windows
What browser are you using?
Chrome
Describe the Bug
I wanted to show HTML-tag as text in a title of a
Card
. Here are my attempts.Does it work as expected? Can you recommend a better solution?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wosagm?file=src%2Fcontent%2Fdocs%2Findex.mdx&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: