markdown-paper 3.0.0 → 3.0.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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [3.0.1](https://github.com/LeafYeeXYZ/MarkdownPaper/compare/v3.0.0...v3.0.1) (2025-06-09)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修改在不输入.md时无法识别的问题 ([142daf2](https://github.com/LeafYeeXYZ/MarkdownPaper/commit/142daf25141d2b326d74ebcf0220e028c689e8a5))
11
+
5
12
  ## 3.0.0 (2025-06-09)
6
13
 
7
14
 
package/bin/mdp.ts CHANGED
@@ -23,7 +23,9 @@ program
23
23
  .command('themes', '显示所有可用的论文模板')
24
24
  .action((markdown, options) => {
25
25
  console.log('开始生成')
26
- const src = resolve(cwd, markdown)
26
+ const src = markdown.startsWith('.md')
27
+ ? resolve(cwd, markdown)
28
+ : resolve(cwd, `${markdown}.md`)
27
29
  const out = options.out
28
30
  ? resolve(cwd, options.out)
29
31
  : src.replace(/\.md$/, '.pdf')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "markdown-paper",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "author": {
5
5
  "name": "LeafYeeXYZ",
6
6
  "email": "xiaoyezi@leafyee.xyz"