@v1hz/md2docx 1.0.3 → 1.0.4

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/index.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v1hz/md2docx",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "基于 pandoc 的 Markdown 转 Word (docx) 工具,自动处理标题、编号、Mermaid 图表等",
5
5
  "keywords": [
6
6
  "converter",
package/src/index.ts CHANGED
@@ -32,7 +32,7 @@ export async function run(args: string[]): Promise<number> {
32
32
  return 0;
33
33
  }
34
34
 
35
- const mdPath = cli.mdPath!;
35
+ const mdPath = resolve(cli.mdPath!);
36
36
  if (!(await Bun.file(mdPath).exists())) throw new Error(`找不到 Markdown 文件:${mdPath}`);
37
37
 
38
38
  const config = await loadConfig(cli.configPath ?? CONFIG_PATH);