Embed Carbon screenshots in your markdown files
- Install plugin to your site:
yarn add gatsby-remark-embed-carbon
- Add
gatsby-remark-embed-carbon
to yourgatsby-transformer-remark
plugins ingatsby-config.js
:
plugins: [
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: ['gatsby-remark-embed-carbon']
}
}
];
plugins: [
{
resolve: 'gatsby-transformer-remark',
options: {
plugins: [
{
resolve: 'gatsby-remark-embed-carbon',
options: {
width: '100%', // default is '1024px'
height: '600px' // default is '473px'
}
}
]
}
}
]
Add a carbon screenshot directly in your markdown file:
# Blog Post
This link will get replaced with a Carbon iframe:
https://carbon.now.sh/?bg=red
This project was completely inspired by (copied from) @garetmckinley's gatsby-remark-embed-spotify
⭐