remark-basepath
remark
plugin to convert the base path of image and link.
Install
# npm install remark-basepath
# or
yarn add remark-basepath
Use
This is example code.
const remark = const basepath = const markdown = `## Image![example image](./example.jpg) ## Link[src](./src)` // ## Image// ![./aaa.jpg](https://raw.githubusercontent.com/kmkzt/remark-basepath/master/aaa.jpg)// // ## Link// [./bbb](https://github.com/kmkzt/remark-basepath/tree/master/bbb)