Skip to content

Commit 80e551a

Browse files
committed
feat: Use .md extension for new contributions
1 parent e300642 commit 80e551a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/components/Contribute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const FILENAME_PATTERN = /^[A-Za-z0-9][A-Za-z0-9_-]+$/;
2727

2828
// 统一调用工具函数生成 GitHub 新建链接,路径规则与 Edit 按钮一致
2929
function buildGithubNewUrl(dirPath: string, filename: string, title: string) {
30-
const file = filename.endsWith(".mdx") ? filename : `${filename}.mdx`;
30+
const file = filename.endsWith(".md") ? filename : `${filename}.md`;
3131
const frontMatter = `---
3232
title: '${title || "New Article"}'
3333
description: ""

0 commit comments

Comments
 (0)