We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e300642 commit 80e551aCopy full SHA for 80e551a
1 file changed
app/components/Contribute.tsx
@@ -27,7 +27,7 @@ const FILENAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]+$/;
27
28
// 统一调用工具函数生成 GitHub 新建链接,路径规则与 Edit 按钮一致
29
function buildGithubNewUrl(dirPath: string, filename: string, title: string) {
30
- const file = filename.endsWith(".mdx") ? filename : `${filename}.mdx`;
+ const file = filename.endsWith(".md") ? filename : `${filename}.md`;
31
const frontMatter = `---
32
title: '${title || "New Article"}'
33
description: ""
0 commit comments