@ver5/markdown-it-internal-link
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@ver5/markdown-it-element-transform

A markdown-it plugin that transforms elements.

Install

pnpm add -D @ver5/markdown-it-internal-link

Usage

import { type InternalLinkOptions, internalLinkPlugin } from "@ver5/markdown-it-internal-link";

md.use<InternalLinkOptions>(internalLinkPlugin, {
  sidebar: [{
    text: string;
    link: string;
  }],
  base: "xxx",
  openInNewTab: true,
  rules: {
    "XXX 文档|XXX 项目": "https://xx.com/",
    "XXX 12684": {
      url:"https://xx.com/xxx",
      openInNewTab: true
    },
  }
})

Package Sidebar

Install

npm i @ver5/markdown-it-internal-link

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

8.89 kB

Total Files

8

Last publish

Collaborators

  • chandlerver5