This commit is contained in:
2026-03-31 16:38:22 -07:00
commit 38940436a7
2112 changed files with 376929 additions and 0 deletions

21
node_modules/@mdit/helper/LICENSE generated vendored Normal file
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (C) 2024 - PRESENT by MrHope
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

18
node_modules/@mdit/helper/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# @mdit/plugin-helper
[![Version](https://img.shields.io/npm/v/@mdit/plugin-helper.svg?style=flat-square&logo=npm) ![Downloads](https://img.shields.io/npm/dm/@mdit/plugin-helper.svg?style=flat-square&logo=npm) ![Size](https://img.shields.io/bundlephobia/min/@mdit/plugin-helper?style=flat-square&logo=npm)](https://www.npmjs.com/package/@mdit/plugin-helper)
Image lazyload plugin for MarkdownIt.
## [Docs](https://mdit-plugins.github.io/helper.html) | [文档](https://mdit-plugins.github.io/zh/helper.html)
## Install / 安装
```bash
# pnpm
pnpm add -D @mdit/plugin-helper
# npm
npm i -D @mdit/plugin-helper
# yarn
yarn add -D @mdit/plugin-helper
```

32
node_modules/@mdit/helper/dist/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,32 @@
//#region src/dedent.d.ts
/**
* Removes common leading whitespace from each line in the given text.
*
* @param text The text to dedent.
* @returns The dedented text.
*/
declare const dedent: (text: string) => string;
//#endregion
//#region src/escape.d.ts
/**
* Escapes html content
*
* @param unsafeHTML The html content to escape.
* @returns The escaped html content.
*/
declare const escapeHtml: (unsafeHTML: string) => string;
/**
* Escapes special characters in string s such that the string
* can be used in `new RegExp`. For example "[" becomes "\\[".
*
* @param regexp The string to escape.
* @returns The escaped string.
*/
declare const escapeRegExp: (regexp: string) => string;
//#endregion
//#region src/reg.d.ts
declare const NEWLINE_RE: RegExp;
declare const UNESCAPE_RE: RegExp;
//#endregion
export { NEWLINE_RE, UNESCAPE_RE, dedent, escapeHtml, escapeRegExp };
//# sourceMappingURL=index.d.ts.map

1
node_modules/@mdit/helper/dist/index.d.ts.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/dedent.ts","../src/escape.ts","../src/reg.ts"],"mappings":";;AAMA;;;;;cAAa,MAAA,GAAU,IAAA;;;;AAAvB;;;;;cCGa,UAAA,GAAc,UAAA;;;AAA3B;;;;;cAiBa,YAAA,GAAgB,MAAA;;;cCzBhB,UAAA,EAAY,MAAA;AAAA,cAEZ,WAAA,EAAa,MAAA"}

4
node_modules/@mdit/helper/dist/index.js generated vendored Normal file
View File

@ -0,0 +1,4 @@
const e=e=>{let t=e.split(`
`),n=t.reduce((e,t)=>{for(let n=0;n<t.length;n++)if(t[n]!==` `&&t[n]!==` `)return Math.min(n,e);return e},1/0);return n<1/0?t.map(e=>e.slice(n)).join(`
`):e},t=/[-/\\^$*+?.()|[\]{}]/g,n=String.raw`\$&`,r=e=>e.replaceAll(`&`,`&amp;`).replaceAll(`<`,`&lt;`).replaceAll(`>`,`&gt;`).replaceAll(`"`,`&quot;`).replaceAll(`'`,`&#39;`),i=e=>e.replaceAll(t,n),a=/\r\n?|\n/g,o=/\\([ \\!"#$%&'()*+,./:;<=>?@[\]^_`{|}~-])/gu;export{a as NEWLINE_RE,o as UNESCAPE_RE,e as dedent,r as escapeHtml,i as escapeRegExp};
//# sourceMappingURL=index.js.map

1
node_modules/@mdit/helper/dist/index.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","names":[],"sources":["../src/dedent.ts","../src/escape.ts","../src/reg.ts"],"sourcesContent":["/**\n * Removes common leading whitespace from each line in the given text.\n *\n * @param text The text to dedent.\n * @returns The dedented text.\n */\nexport const dedent = (text: string): string => {\n const lines = text.split(\"\\n\");\n\n const minIndentLength = lines.reduce((acc, line) => {\n for (let i = 0; i < line.length; i++)\n if (line[i] !== \" \" && line[i] !== \"\\t\") return Math.min(i, acc);\n\n return acc;\n }, Infinity);\n\n if (minIndentLength < Infinity)\n return lines.map((line) => line.slice(minIndentLength)).join(\"\\n\");\n\n return text;\n};\n","const ESCAPE_REGEXP = /[-/\\\\^$*+?.()|[\\]{}]/g;\nconst REPLACE_WITH = String.raw`\\$&`;\n\n/**\n * Escapes html content\n *\n * @param unsafeHTML The html content to escape.\n * @returns The escaped html content.\n */\nexport const escapeHtml = (unsafeHTML: string): string =>\n unsafeHTML\n .replaceAll(\"&\", \"&amp;\")\n .replaceAll(\"<\", \"&lt;\")\n .replaceAll(\">\", \"&gt;\")\n .replaceAll('\"', \"&quot;\")\n .replaceAll(\"'\", \"&#39;\");\n\n/**\n * Escapes special characters in string s such that the string\n * can be used in `new RegExp`. For example \"[\" becomes \"\\\\[\".\n *\n * @param regexp The string to escape.\n * @returns The escaped string.\n */\n// NOTE: This should be a bug of oxlint\n// oxlint-disable-next-line jsdoc/require-param, jsdoc/require-returns\nexport const escapeRegExp = (regexp: string): string =>\n regexp.replaceAll(ESCAPE_REGEXP, REPLACE_WITH);\n","// https://spec.commonmark.org/0.29/#line-ending\nexport const NEWLINE_RE: RegExp = /\\r\\n?|\\n/g;\n\nexport const UNESCAPE_RE: RegExp = /\\\\([ \\\\!\"#$%&'()*+,./:;<=>?@[\\]^_`{|}~-])/gu;\n"],"mappings":"AAMA,MAAa,EAAU,GAAyB,CAC9C,IAAM,EAAQ,EAAK,MAAM;EAAK,CAExB,EAAkB,EAAM,QAAQ,EAAK,IAAS,CAClD,IAAK,IAAI,EAAI,EAAG,EAAI,EAAK,OAAQ,IAC/B,GAAI,EAAK,KAAO,KAAO,EAAK,KAAO,IAAM,OAAO,KAAK,IAAI,EAAG,EAAI,CAElE,OAAO,GACN,IAAS,CAKZ,OAHI,EAAkB,IACb,EAAM,IAAK,GAAS,EAAK,MAAM,EAAgB,CAAC,CAAC,KAAK;EAAK,CAE7D,GCnBH,EAAgB,wBAChB,EAAe,OAAO,GAAG,MAQlB,EAAc,GACzB,EACG,WAAW,IAAK,QAAQ,CACxB,WAAW,IAAK,OAAO,CACvB,WAAW,IAAK,OAAO,CACvB,WAAW,IAAK,SAAS,CACzB,WAAW,IAAK,QAAQ,CAWhB,EAAgB,GAC3B,EAAO,WAAW,EAAe,EAAa,CC1BnC,EAAqB,YAErB,EAAsB"}

57
node_modules/@mdit/helper/package.json generated vendored Normal file
View File

@ -0,0 +1,57 @@
{
"name": "@mdit/helper",
"version": "0.23.1",
"description": "Helper functions for MarkdownIt plugins",
"keywords": [
"helper",
"markdown-it"
],
"homepage": "https://mdit-plugins.github.io/",
"bugs": {
"url": "https://github.com/mdit-plugins/mdit-plugins/issues"
},
"license": "MIT",
"author": {
"name": "Mr.Hope",
"email": "mister-hope@outlook.com",
"url": "https://mister-hope.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mdit-plugins/mdit-plugins.git",
"directory": "packages/helper"
},
"files": [
"dist"
],
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@types/markdown-it": "^14.1.2"
},
"peerDependencies": {
"markdown-it": "^14.1.0"
},
"peerDependenciesMeta": {
"markdown-it": {
"optional": true
}
},
"engines": {
"node": ">= 20"
},
"scripts": {
"build": "tsdown --config-loader unrun",
"clean": "rimraf ./dist"
}
}

22
node_modules/@mdit/plugin-attrs/LICENSE generated vendored Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) Arve Seljebu <arve.seljebu@gmail.com> (arve0.github.io)
Copyright (C) 2022 - PRESENT by MrHope
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

18
node_modules/@mdit/plugin-attrs/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# @mdit/plugin-attrs
[![Version](https://img.shields.io/npm/v/@mdit/plugin-attrs.svg?style=flat-square&logo=npm) ![Downloads](https://img.shields.io/npm/dm/@mdit/plugin-attrs.svg?style=flat-square&logo=npm) ![Size](https://img.shields.io/bundlephobia/min/@mdit/plugin-attrs?style=flat-square&logo=npm)](https://www.npmjs.com/package/@mdit/plugin-attrs)
Attrs plugin for MarkdownIt.
## [Docs](https://mdit-plugins.github.io/attrs.html) | [文档](https://mdit-plugins.github.io/zh/attrs.html)
## Install / 安装
```bash
# pnpm
pnpm add -D @mdit/plugin-attrs
# npm
npm i -D @mdit/plugin-attrs
# yarn
yarn add -D @mdit/plugin-attrs
```

3
node_modules/@mdit/plugin-attrs/dist/cdn.umd.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/@mdit/plugin-attrs/dist/cdn.umd.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

52
node_modules/@mdit/plugin-attrs/dist/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,52 @@
import { PluginWithOptions } from "markdown-it";
//#region src/helper/types.d.ts
interface DelimiterConfig {
/**
* left delimiter
*
* 左分隔符
*
* @default '{'
*/
left: string;
/**
* right delimiter
*
* 右分隔符
*
* @default '}'
*/
right: string;
/**
* allowed attributes
*
* @description An empty list means allowing all attribute
*
* 允许的属性
*
* @description 设置空数组意味着允许所有属性
*
* @default []
*/
allowed: (string | RegExp)[];
}
//#endregion
//#region src/options.d.ts
type MarkdownItAttrRuleName = "fence" | "inline" | "table" | "list" | "heading" | "hr" | "softbreak" | "block";
interface MarkdownItAttrsOptions extends Partial<DelimiterConfig> {
/**
* Rules to enable
*
* 启用的规则
*
* @default "all"
*/
rule?: "all" | boolean | MarkdownItAttrRuleName[];
}
//#endregion
//#region src/plugin.d.ts
declare const attrs: PluginWithOptions<MarkdownItAttrsOptions>;
//#endregion
export { MarkdownItAttrRuleName, MarkdownItAttrsOptions, attrs };
//# sourceMappingURL=index.d.ts.map

1
node_modules/@mdit/plugin-attrs/dist/index.d.ts.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/helper/types.ts","../src/options.ts","../src/plugin.ts"],"mappings":";;;UAEiB,eAAA;;AAAjB;;;;;;EAQE,IAAA;;;;;;;ACRF;EDiBE,KAAA;;;;ACPF;;;;;;;;EDoBE,OAAA,YAAmB,MAAA;AAAA;;;KC9BT,sBAAA;AAAA,UAUK,sBAAA,SAA+B,OAAA,CAAQ,eAAA;EDVxD;;;;;;;ECkBE,IAAA,qBAAyB,sBAAA;AAAA;;;cCRd,KAAA,EAAO,iBAAA,CAAkB,sBAAA"}

3
node_modules/@mdit/plugin-attrs/dist/index.js generated vendored Normal file

File diff suppressed because one or more lines are too long

1
node_modules/@mdit/plugin-attrs/dist/index.js.map generated vendored Normal file

File diff suppressed because one or more lines are too long

64
node_modules/@mdit/plugin-attrs/package.json generated vendored Normal file
View File

@ -0,0 +1,64 @@
{
"name": "@mdit/plugin-attrs",
"version": "0.25.1",
"description": "attrs plugin for MarkdownIt",
"keywords": [
"attrs",
"markdown-it",
"markdown-it-plugin"
],
"homepage": "https://mdit-plugins.github.io/attrs.html",
"bugs": {
"url": "https://github.com/mdit-plugins/mdit-plugins/issues"
},
"license": "MIT",
"author": {
"name": "Mr.Hope",
"email": "mister-hope@outlook.com",
"url": "https://mister-hope.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/mdit-plugins/mdit-plugins.git",
"directory": "packages/attrs"
},
"files": [
"dist"
],
"type": "module",
"sideEffects": false,
"unpkg": "./dist/cdn.umd.js",
"jsdelivr": "./dist/cdn.umd.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@types/markdown-it": "^14.1.2",
"@mdit/helper": "0.23.1"
},
"devDependencies": {
"@mdit/plugin-katex": "0.25.1"
},
"peerDependencies": {
"markdown-it": "^14.1.0"
},
"peerDependenciesMeta": {
"markdown-it": {
"optional": true
}
},
"engines": {
"node": ">= 20"
},
"scripts": {
"build": "tsdown --config-loader unrun",
"clean": "rimraf ./dist"
}
}