markdown-paper 2.4.0 → 2.5.0
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 +10 -0
- package/package.json +1 -1
- package/theme/aps/aps.css +5 -0
package/README.md
CHANGED
|
@@ -53,6 +53,10 @@ $$
|
|
|
53
53
|
- 文献2
|
|
54
54
|
- 文献3
|
|
55
55
|
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
(上面的是分页符)
|
|
59
|
+
|
|
56
60
|
##### 附录
|
|
57
61
|
```
|
|
58
62
|
|
|
@@ -97,6 +101,7 @@ mdp example.md --outputDOCX
|
|
|
97
101
|
| `--outputDOCX` | 输出 `DOCX` 文件, 默认不输出<br>**导出后样式可能无法完全保留, 请自行调整** |
|
|
98
102
|
|
|
99
103
|
# 模板说明
|
|
104
|
+
|
|
100
105
|
`/theme/theme.ts` 中的 `MarkdownnPaperTheme` 接口定义了模板的样式, 按照类似于 `aps` 文件夹的结构可自定义模板; 模板可以提供自定义功能
|
|
101
106
|
|
|
102
107
|
模板制作完成后, 在 `/lib/main.ts` 中导入并添加到 `class MarkdownPaperOptions -> constructor -> case '--theme':` 中, 并在下方添加使用文档即可
|
|
@@ -104,7 +109,9 @@ mdp example.md --outputDOCX
|
|
|
104
109
|
推荐所有主题的文档和编写格式都尽量与 `aps` 主题保持一致
|
|
105
110
|
|
|
106
111
|
## APS 模板
|
|
112
|
+
|
|
107
113
|
### 额外命令行参数
|
|
114
|
+
|
|
108
115
|
| 参数 | 说明 |
|
|
109
116
|
| :---: | :---: |
|
|
110
117
|
| `--showTitle` | 在页眉显示文件名, 默认不显示 |
|
|
@@ -113,9 +120,12 @@ mdp example.md --outputDOCX
|
|
|
113
120
|
| `--enPunctuation` | 将正文中的中文标点符号替换为英文标点符号, 默认不替换<br>仅替换 `PDF` 和 `DOCX` 文件 |
|
|
114
121
|
|
|
115
122
|
### 编写格式
|
|
123
|
+
|
|
116
124
|
同上
|
|
117
125
|
|
|
118
126
|
# 更新日志
|
|
127
|
+
|
|
128
|
+
- `2.5.0` (2025-02-07): 支持分页符
|
|
119
129
|
- `2.4.0` (2024-12-08): 导出 `DOCX` 文件时, 不再依赖 `Python`
|
|
120
130
|
- `2.3.0` (2024-08-31): 支持数学公式
|
|
121
131
|
- `2.2.0` (2024-08-26): 半重构, 优化导入导出, 优化文档
|
package/package.json
CHANGED