feat(reader): copy tables as Markdown - #41
Open
oldwinter wants to merge 1 commit into
Open
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
❌ Deploy Preview for aquamarine-salamander-b041fe failed. Why did it fail? →
|
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.
这次为正文中的 Markdown 表格构建了一个本地化的一键复制按钮:读者可以把网页表格直接带回 Obsidian、Markdown 编辑器或 issue,而不必手动选中和重排列。它只在结构可安全转换的原生表格上出现,输出会归一化空白、转义竖线与反斜杠并补齐短行;我觉得它值得合并,因为它把一个高频但繁琐的复用动作变成了清晰、可撤销、完全本地的 40px 操作,同时不改变任何原始内容。
Validation
npx tsx --test quartz/components/scripts/tableMarkdown.test.ts quartz/plugins/emitters/componentResources.test.ts- 14/14 passednpx tsc --noEmit- passedgit diff --check- passednpx quartz build- passed (314 Markdown inputs, 1,913 emitted files)npm test- 247/248 passed; the sole failure is the known baselinejsdompackage absence inlocal-plugins/theme-switcher/test/themeSwitcherScript.test.tsImpact
Rollback
Revert this commit. The feature writes no persistent state and requires no data or content cleanup.
Hosted status
Netlify deploy preview
6a95e87254d01300081b844dfailed all four contexts. GitHub exposed zero annotations and Netlify's public API returned an unavailable summary with no messages, publish time, or deploy time. The exact-SHA local build and browser QA above pass; no deployment, authentication, configuration, or infrastructure change was made to bypass this opaque hosted-preview blocker.