@jiyeqian/md2pdf 1.7.4 → 1.7.6

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 CHANGED
@@ -2,13 +2,9 @@
2
2
 
3
3
  把 Markdown 排成**优雅的中文 A4 PDF**:报头大标题、元信息条、精心排过的表格/代码/引用/列表、页脚页码,还支持数学公式与参考文献。不是 pandoc 的默认样式——是可以直接拿去打印、发给别人看的版式。
4
4
 
5
- **elegant 主题**(默认,墨蓝 + 古铜):
6
-
7
- ![elegant 主题效果](docs/theme-elegant.png)
8
-
9
- **minimal 主题**(黑白公文风):
10
-
11
- ![minimal 主题效果](docs/theme-minimal.png)
5
+ | elegant(默认,墨蓝 + 古铜) | minimal(黑白公文风) |
6
+ | :---: | :---: |
7
+ | [![elegant 主题效果](https://cnb.cool/jiyeqian/md2pdf/-/git/raw/main/docs/theme-elegant.png)](https://cnb.cool/jiyeqian/md2pdf/-/git/raw/main/examples/demo-elegant.pdf) | [![minimal 主题效果](https://cnb.cool/jiyeqian/md2pdf/-/git/raw/main/docs/theme-minimal.png)](https://cnb.cool/jiyeqian/md2pdf/-/git/raw/main/examples/demo-minimal.pdf) |
12
8
 
13
9
  仓库:https://cnb.cool/jiyeqian/md2pdf
14
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jiyeqian/md2pdf",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "把 Markdown 排成优雅的中文 A4 PDF(无头 Chrome 渲染,带报头、表格/代码排版与页脚页码)",
5
5
  "type": "module",
6
6
  "bin": {
package/src/md2pdf.mjs CHANGED
@@ -40,7 +40,7 @@ import { fileURLToPath, pathToFileURL } from 'node:url';
40
40
  const ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
41
41
  const ASSETS = path.join(ROOT, 'assets');
42
42
 
43
- const VERSION = '1.7.4';
43
+ const VERSION = '1.7.6';
44
44
 
45
45
  // Node ≥ 22 有全局 WebSocket;更老的版本退回到内置的极简实现
46
46
  let _WS;