@bhxch/vviewer-markdown-highlight-worker 0.1.0 → 0.1.1
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/README.md +11 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
批量取消)与区间→行 HTML 装配全部现成,宿主只写一行接入。worker 失败链与包内
|
|
7
7
|
默认高亮器一致:该块降级 hljs → 原文;取消(tab 切换)静默跳过。
|
|
8
8
|
|
|
9
|
+
## 安装
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @bhxch/vviewer-markdown-highlight-worker
|
|
13
|
+
```
|
|
14
|
+
|
|
9
15
|
## 快速上手
|
|
10
16
|
|
|
11
17
|
```ts
|
|
@@ -65,3 +71,8 @@ worker 必须是独立 JS 文件,本包以源码形态提供(`src/worker.js`
|
|
|
65
71
|
兜底);同语言并发请求由 client 去重(取消前一个未完成者)。
|
|
66
72
|
- 本包不含 wasm 资产;grammar/查询/runtime 来源由 `init` 决定(默认 jsdelivr
|
|
67
73
|
CDN 的 `@bhxch/vviewer-grammars-full`)。
|
|
74
|
+
|
|
75
|
+
## 仓库与许可
|
|
76
|
+
|
|
77
|
+
- 仓库:[bhxch/vviewer](https://github.com/bhxch/vviewer),源码位于 `packages/vviewer-markdown-highlight-worker/`
|
|
78
|
+
- 许可:Apache-2.0;第三方依赖许可见仓库 `THIRD_PARTY_NOTICES.md`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bhxch/vviewer-markdown-highlight-worker",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"license": "Apache-2.0",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@bhxch/vviewer-highlight": "0.1.
|
|
31
|
-
"@bhxch/vviewer-markdown": "0.1.
|
|
30
|
+
"@bhxch/vviewer-highlight": "0.1.1",
|
|
31
|
+
"@bhxch/vviewer-markdown": "0.1.1"
|
|
32
32
|
},
|
|
33
|
-
"contentHash": "
|
|
33
|
+
"contentHash": "07f6b436ff6dc0f8"
|
|
34
34
|
}
|