vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.25k stars 2.14k forks source link

How to add badge to link connection #4318

Closed qianmoQ closed 4 weeks ago

qianmoQ commented 4 weeks ago

Is your feature request related to a problem? Please describe.

I need to add a version prompt in the link connection, how should I configure it

{text: 'Card <Badge>1.0.0</Badge>', link: '../2024.1.1/card'},

It is not working,How can I achieve this effect?

Describe the solution you'd like

None

Describe alternatives you've considered

No response

Additional context

No response

Validations

brc-dd commented 4 weeks ago

vue components won't work there, you can directly put html markup like this - https://github.com/lando/cli/blob/e5f8e29f7739e8e3b01a212c90817c538ee66de3/docs/.vitepress/config.mjs#L83

qianmoQ commented 4 weeks ago

Very good, it fits my idea, thank you very much