Socket
Socket
Sign inDemoInstall

remark-redirect

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    remark-redirect

Remark plugin for changing links to markdown files to HTML files.


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
90.8 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 20 Aug 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc