Skip to content

inkdropapp/remark-fix-relative-uris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

remark plugin to resolve relative URIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published