Repository navigation
修复 #286 D1/D2/D3:导出 MD 链接空格、i18n 缺失、标题重复 - #327
Merged
todosdev[bot] merged 1 commit intoNov 29, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
common.confirm文案,按钮显示原始 key;补齐中英文。# 标题,与正文已有同文 h1 重复;现检测正文首个一级标题,同文不再重复补首行标题。Changes
web/src/lib/space-archive/path.ts:cleanFilename在非法字符清洗后新增.replace(/\s+/g, "-"),使包内所有文件名统一不含空格(页 md/json 路径与 embed hintName 归口到该函数,图片/画布文件名本为 UUID、无需处理)。web/src/lib/space-archive/content-parser.ts:rewriteMarkdownForExport新增firstLevelOneHeading辅助函数,正文首个一级标题与pageTitle同文时不再重复追加首行标题;无 h1 或异文时仍补首行标题。web/src/locales/zh.json/web/src/locales/en.json:顶层common命名空间新增confirm键(确定/Confirm)。web/src/lib/space-archive/export-import.test.ts:新增 D1(cleanFilename 空白折叠、generateAllPagePaths 无空格路径)与 D3(同文去重、无 h1/异文补标题)回归用例。Testing
pnpm test(web 全量):1307 passed。npx tsc --noEmit:通过。npx vite build:通过。8205e57):success(Install / Lint / Format check / Type check / Build / Test / Check deploy config 全绿)。