In this Gatsby project, I use gatsby-transformer-remark
to transform Markdown pages to html.
I have this issue.
Question: How can I configure gatsby-transformer-remark
to rename all *.md
link to */
?
I think I need to explore How to change Markdown link relative path as preprocessing of gatsby-transformer-remark
I have find a solution: https://github.com/stephane-klein/gatsby-remark-convert-linker-from-md-to-html-example/commit/a941cf990be4a16c72c46e3c893f37509a3e5890
In
plugins/gatsby-remark-relative-linker/index.js
:See the complete example here: https://github.com/stephane-klein/gatsby-remark-convert-linker-from-md-to-html-example