Card
Less than 1 minute
You can add cards in Markdown content.
Settings
TS
// .vuepress/config.ts
import { mdEnhancePlugin } from "vuepress-plugin-md-enhance";
export default {
plugins: [
mdEnhancePlugin({
// Enable card support
card: true,
}),
],
};
JS
// .vuepress/config.js
import { mdEnhancePlugin } from "vuepress-plugin-md-enhance";
export default {
plugins: [
mdEnhancePlugin({
// Enable card support
card: true,
}),
],
};
Usage
You can use card fence block to add a card into your markdown content. Both YAML and JSON format card data are supported:
```card
# card data here
```
```card
{
// card data here
}
```
Card data supports title
, desc
, logo
, link
and color
properties.
If you want to place multiple cards together, you can wrap them in card
container:
::: card
```card
# card data here
```
```card
# card data here
```
...
:::
Demo
::: card
```card
title: Mr.Hope
desc: Where there is light, there is hope
logo: https://mister-hope.com/logo.svg
link: https://mister-hope.com
color: rgba(253, 230, 138, 0.15)
```
```card
{
"title": "Mr.Hope",
"desc": "Where there is light, there is hope",
"logo": "https://mister-hope.com/logo.svg",
"link": "https://mister-hope.com",
"color": "rgba(253, 230, 138, 0.15)"
}
```
:::