This plugin extracts images from markdown files that are parsed with gatsby-transformer-remark.
npm i --save @libsrcdev/gatsby-remark-autolink-domains- Autolink no-scheme domains to their full URL.
- Supports custom extraction logic via a user-defined function.
- Automatically convert plain domain names in markdown to clickable links.
- Customize link extraction based on specific criteria.
Example:
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
{
resolve: `gatsby-remark-autolink-domains`,
options: {
mapUrl: (domain, rest) => {
return {
fullUrl: `custom-full-url-for-${domain}${rest}`,
scheme: 'anycustomscheme',
domain: 'anycustomdomain.com',
}
}
},
},
],
},
},
];