Skip to content

[New & Fix]: 新增复制题目 MarkDown,修复排版错误 - #9

Merged
Transparent-fish merged 4 commits into
mainfrom
dev
Jul 14, 2026
Merged

[New & Fix]: 新增复制题目 MarkDown,修复排版错误#9
Transparent-fish merged 4 commits into
mainfrom
dev

Conversation

@Transparent-fish

Copy link
Copy Markdown
Owner

No description provided.

@Transparent-fish

Copy link
Copy Markdown
Owner Author

由于现在题目一直爬取不了,暂时不知道复制能不能用,好像是可以用的

@github-actions

Copy link
Copy Markdown

PR 审查报告

检查结果

检查项 状态
pnpm build
pnpm lint
pnpm test
函数 <= 130 行

未通过的检查

全部通过,无需修改。


自动生成 by PR Review workflow

@Transparent-fish Transparent-fish mentioned this pull request Jul 13, 2026
3 tasks
@Transparent-fish

Copy link
Copy Markdown
Owner Author

蹲个好心人帮我测试

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a feature to copy AtCoder problems as Markdown, adding a new utility file copy.ts for HTML-to-text conversion, a 'Copy Markdown' button in the webview, and corresponding message handling. It also refactors Cloudflare challenge handling by simplifying the UI and error messages, advising users to use the browser directly rather than prompting them to copy cookies. Feedback is provided regarding the htmlToText utility, which currently strips all HTML tags using a simple regular expression. This approach breaks KaTeX mathematical formulas and can accidentally delete text containing < or > symbols. A robust solution is suggested to parse and convert KaTeX structures into Markdown math blocks before stripping HTML tags.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread apps/vscode-extension/src/tools/copy.ts
@github-actions

Copy link
Copy Markdown

PR 审查报告

检查结果

检查项 状态
pnpm build
pnpm lint
pnpm test
函数 <= 130 行

未通过的检查

全部通过,无需修改。


自动生成 by PR Review workflow

@Transparent-fish

Copy link
Copy Markdown
Owner Author

done.

@Transparent-fish
Transparent-fish merged commit 660c6af into main Jul 14, 2026
1 check passed
@Transparent-fish Transparent-fish mentioned this pull request Jul 15, 2026
8 tasks
@Transparent-fish Transparent-fish moved this to Done in Phase 1 Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant