0.1.0 • Published 4 years ago
remark-fix-relative-uris v0.1.0
remark-fix-relative-uris
remark plugin to resolve relative URIs.
Install
npm:
npm install remark-fix-relative-uris
Use
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"
API
remark().use(fixRelativeUris, args)
Resolve relative URIs.
args.baseURI
— The base URI to append
Related
mdast-util-fix-relative-uris
— mdast utility that is in the core of this plugin
Contribute
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.
License
0.1.0
4 years ago