markdown-it-any-block 3.2.2 → 3.2.3-beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/jsdom_init.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  export async function jsdom_init() {
6
6
  // JsDom。仅用于提供document对象支持 (如果Ob等客户端渲染环境中则不需要,服务端渲染则需要)
7
7
  const { default: jsdom } = await import('jsdom')
8
+ // import jsdom from "jsdom"
8
9
  const { JSDOM } = jsdom
9
10
  const dom = new JSDOM(`<!DOCTYPE html><html><body></body></html>`, {
10
11
  url: 'http://localhost/', // @warn 若缺少该行,则在mdit+build环境下,编译报错
package/package.json CHANGED
@@ -1,47 +1,48 @@
1
- {
2
- "name": "markdown-it-any-block",
3
- "version": "3.2.2",
4
- "description": "```typescript\r import { ABConvertManager } from \"ABConvertManager\"",
5
- "types": "@types/index_mdit.d.ts",
6
- "type": "module",
7
- "main": "dist/mdit-any-block.cjs",
8
- "exports": {
9
- ".": {
10
- "import": "./dist/mdit-any-block.js",
11
- "require": "./dist/mdit-any-block.cjs"
12
- }
13
- },
14
- "scripts": {
15
- "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "npm run build_rollup",
17
- "build_tsc": "tsc",
18
- "build_tsup": "tsup",
19
- "build_vite": "vite build",
20
- "build_rollup": "rollup -c rollup.config.ts --configPlugin esbuild",
21
- "prepublishOnly": "npm run build_vite"
22
- },
23
- "author": "LincZero",
24
- "license": "GNU Affero General Public License v3.0",
25
- "peerDependencies": {
26
- "markdown-it": "^14.1.0"
27
- },
28
- "dependencies": {
29
- "jsdom": "^25.0.1",
30
- "markdown-it": "^14.1.0",
31
- "plantuml-encoder": "^1.4.0"
32
- },
33
- "devDependencies": {
34
- "@rollup/plugin-alias": "^5.1.1",
35
- "@types/jsdom": "^21.1.7",
36
- "@types/markdown-it": "^14.1.2",
37
- "@types/markdown-it-container": "^2.0.10",
38
- "@types/plantuml-encoder": "^1.4.2",
39
- "markdown-it-container": "^4.0.0",
40
- "rollup": "4.40.1",
41
- "rollup-plugin-dts": "6.2.1",
42
- "rollup-plugin-esbuild": "6.2.1",
43
- "tsup": "^8.2.4",
44
- "typescript": "^5.6.2",
45
- "vite": "^5.4.5"
46
- }
47
- }
1
+ {
2
+ "name": "markdown-it-any-block",
3
+ "version": "3.2.3-beta1",
4
+ "description": "```typescript\r import { ABConvertManager } from \"ABConvertManager\"",
5
+ "types": "@types/index_mdit.d.ts",
6
+ "type": "module",
7
+ "main": "dist/mdit-any-block.cjs",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/mdit-any-block.js",
11
+ "require": "./dist/mdit-any-block.cjs"
12
+ }
13
+ },
14
+ "scripts": {
15
+ "test": "echo \"Error: no test specified\" && exit 1",
16
+ "build": "npm run build_vite",
17
+ "build_tsc": "tsc",
18
+ "build_tsup": "tsup",
19
+ "build_vite": "vite build",
20
+ "build_rollup": "rollup -c rollup.config.ts --configPlugin esbuild",
21
+ "build_test": "echo '区别见README文件的 构建测试 一节'",
22
+ "prepublishOnly": "npm run build_vite"
23
+ },
24
+ "author": "LincZero",
25
+ "license": "GNU Affero General Public License v3.0",
26
+ "peerDependencies": {
27
+ "markdown-it": "^14.1.0"
28
+ },
29
+ "dependencies": {
30
+ "jsdom": "^25.0.1",
31
+ "markdown-it": "^14.1.0",
32
+ "plantuml-encoder": "^1.4.0"
33
+ },
34
+ "devDependencies": {
35
+ "@rollup/plugin-alias": "^5.1.1",
36
+ "@types/jsdom": "^21.1.7",
37
+ "@types/markdown-it": "^14.1.2",
38
+ "@types/markdown-it-container": "^2.0.10",
39
+ "@types/plantuml-encoder": "^1.4.2",
40
+ "markdown-it-container": "^4.0.0",
41
+ "rollup": "4.40.1",
42
+ "rollup-plugin-dts": "6.2.1",
43
+ "rollup-plugin-esbuild": "6.2.1",
44
+ "tsup": "^8.2.4",
45
+ "typescript": "^5.6.2",
46
+ "vite": "^5.4.5"
47
+ }
48
+ }