Skip to content

refactor: replace duplicate escapeHtml in markdown.ts with shared import from toolIconResolver#457

Merged
Power-Maverick merged 2 commits intofeat/whats-newfrom
copilot/sub-pr-453
Mar 16, 2026
Merged

refactor: replace duplicate escapeHtml in markdown.ts with shared import from toolIconResolver#457
Power-Maverick merged 2 commits intofeat/whats-newfrom
copilot/sub-pr-453

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 16, 2026

markdown.ts defined its own escapeHtml that was byte-for-byte identical to the one already exported from toolIconResolver.ts, creating a silent divergence risk for sanitization logic.

  • src/renderer/utils/markdown.ts — removed local escapeHtml definition; replaced with import { escapeHtml } from "./toolIconResolver". No behavior change.

  • Use a meaningful title for the pull request.

  • Follow the guidelines from the CONTRIBUTING.md.

  • Mention the bug or the feature number the PR will be targeting.

  • Test the change in your own code. (Compile and run)

  • Resolve all GH Copilot comments.


📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.

…ing it in markdown.ts

Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback on 'What's New' feature implementation refactor: replace duplicate escapeHtml in markdown.ts with shared import from toolIconResolver Mar 16, 2026
Copilot AI requested a review from Power-Maverick March 16, 2026 03:01
@Power-Maverick Power-Maverick marked this pull request as ready for review March 16, 2026 11:41
@Power-Maverick Power-Maverick merged commit bab139b into feat/whats-new Mar 16, 2026
@Power-Maverick Power-Maverick deleted the copilot/sub-pr-453 branch March 16, 2026 11:41
Power-Maverick added a commit that referenced this pull request Mar 16, 2026
* feat: implement "What's New" feature with auto-update notifications and markdown rendering

* feat: enhance "What's New" feature to support insider version detection and update URLs accordingly

* Fix: Inject PPTB_UPDATES_ORIGIN into renderer CSP at build time (#454)

* Initial plan

* fix: make CSP reflect configured PPTB_UPDATES_ORIGIN at build time via Vite transformIndexHtml

Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* refactor: replace duplicate escapeHtml in markdown.ts with shared import from toolIconResolver (#457)

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants