1.0.0 • Published 3 years ago

remark-redirect v1.0.0

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

remark-redirect

CI/CD Status MIT License stars

Remark plugin for redirecting links to markdown files into the equivalent HTML files (e.g. [Link](link.md) into [Link](link.html)). Also changes to README.md into index.html.

Install

This package is ESM only: Node 12+ is needed to use it and it must be imported instead of required.

npm:

npm install remark-redirect

Usage

import { unified } from 'unified'
import markdown from 'remark-parse'
import html from 'rehype-stringify'
import remark2rehype from 'remark-rehype'
import redirect from 'remark-redirect'

unified()
  .use(markdown)
  .use(redirect)
  .use(remark2rehype)
  .use(html)

License

MIT © Alex Shaw

1.0.0

3 years ago

0.3.0

3 years ago

0.2.1

4 years ago

0.2.0

5 years ago

0.1.1

5 years ago