remark plugin to resolve relative URIs.
npm:
npm install remark-fix-relative-uris
var remark = require('remark')
var fixRelativeUris = require('remark-fix-relative-uris')
remark()
.use(fixRelativeUris, {baseURI: 'https://www.craftz.dog/'})
.processSync('[About](/about)\n')
.toString()
// => "[About](https://www.craftz.dog/about)\n"
Resolve relative URIs.
args.baseURI
— The base URI to append
mdast-util-fix-relative-uris
— mdast utility that is in the core of this plugin
See contributing.md
in remarkjs/.github
for ways
to get started.
See support.md
for ways to get help.
This project has a code of conduct. By interacting with this repository, organization, or community you agree to abide by its terms.