1.0.1 ā¢ Published 3 years ago
gatsby-remark-link-preview v1.0.1
Gatsby 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!