A plugin for gatsby-transformer-remark
that transforms relative links in markdown files to their corresponding relative paths.
this is inspired by https://stackoverflow.com/q/48553146/6587078
Add this plugin to your gatsby-config
file:
{
resolve: "gatsby-transformer-remark",
options: {
plugins: [
"gatsby-remark-relative-linker",
]
}
}
Note that the converted links may not look as expected based on slugify policies.