0.1.0 • Published 3 years ago

remark-fix-relative-uris v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

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

MIT © Takuya Matsuyama