Community Plugin
View plugin on GitHubGatsby Remark plugin to embed Notion-like card UI about link.
This is a fork from gatsby-remark-link-card, π You can preview the description of the link!
π Install
$ npm install --save gatsby-remark-link-preview
# or
$ yarn add gatsby-remark-link-preview
π How to use
π This plugin requires gatsby-transformer-remark
.
in Markdown
[$card](https://github.com/lichin-lin/gatsby-remark-link-preview/)
with Config
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-link-preview`,
options: {
//...
}
}
]
}
}
];
β Options
Property | Type | Default | Description |
---|---|---|---|
delimiter |
string |
$card |
Title of the link to create a card |
image |
string |
data-uri | Default og image path |
favicon |
string |
data-uri | Default favicon image path |
timeout |
number |
30000 | Default timeout(ms) for puppeteer |
error |
Object |
- | Default config when error |
Author
π€ Lichin Lin
- Github: @lichin-lin
- Twitter: @lichinlin
Inspiration
Show your support
Give a βοΈ if this project helped you!