first
This commit is contained in:
22
node_modules/@mdit/plugin-attrs/LICENSE
generated
vendored
Normal file
22
node_modules/@mdit/plugin-attrs/LICENSE
generated
vendored
Normal 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
18
node_modules/@mdit/plugin-attrs/README.md
generated
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
# @mdit/plugin-attrs
|
||||
|
||||
[  ](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
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
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
52
node_modules/@mdit/plugin-attrs/dist/index.d.ts
generated
vendored
Normal 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
1
node_modules/@mdit/plugin-attrs/dist/index.d.ts.map
generated
vendored
Normal 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
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
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
64
node_modules/@mdit/plugin-attrs/package.json
generated
vendored
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user