@ver5/markdown-it-internal-link
v1.0.0
Published
A markdown-it plugin that link other pages
Maintainers
Readme
@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
},
}
})