@v1hz/md2docx 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v1hz/md2docx",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "基于 pandoc 的 Markdown 转 Word (docx) 工具,自动处理标题、编号、Mermaid 图表等",
5
5
  "keywords": [
6
6
  "converter",
package/src/cli.ts CHANGED
@@ -102,7 +102,7 @@ export function parseCliArgs(args: string[], configOptions: ConfigOption[]): Cli
102
102
  positional.push(arg);
103
103
  }
104
104
 
105
- if (!result.help && !result.web) {
105
+ if (!result.help && !result.version && !result.web) {
106
106
  if (positional.length === 0) throw new Error("缺少 Markdown 文件路径");
107
107
  if (positional.length > 1) throw new Error("只能指定一个 Markdown 文件路径");
108
108
  result.mdPath = positional[0];