remark-fix-relative-uris

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i remark-fix-relative-uris

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

4.04 kB

Total Files

4

Last publish

Collaborators

  • craftzdog