Skip to content

fix: render Markdown tables and math formulas - #26

Merged
Lixxx1 merged 1 commit into
mainfrom
fix/markdown-table-math
Sep 9, 2026
Merged

Lixxx1 merged 1 commit into
mainfrom
fix/markdown-table-math

Conversation

@Lixxx1

@Lixxx1 Lixxx1 commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes #24.

  • Replace the basic Markdown renderer with GFM table support and KaTeX math rendering, including inline and display formulas.
  • Keep wide tables and formulas horizontally scrollable within the sidebar, while preserving file links and external-link handling.
  • Preserve complete math and fenced-code blocks during streaming; leave code literals, currency, and incomplete formulas as text.
  • Bundle rendering scripts, styles, and fonts locally. Escape model-provided HTML, sanitize Markdown output, and keep KaTeX trust disabled without weakening the script CSP.
  • Add rendering, security, streaming, and asset-loading regression tests.

This PR is based directly on main and is independent of the DSH 0.1.2 migration in #25. README files and the extension version are unchanged.

Validation

  • Frozen-lockfile install passed.
  • pnpm check passed: 36 test files, 196 tests passed and 1 skipped, plus type checking and both bundles.
  • Browser preview checked in dark and light themes at a narrow sidebar width.
  • VSIX file-list inspection confirmed bundled scripts, CSS, and local fonts.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-09T14:50:02.500836Z 18e3713 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Lixxx1
Lixxx1 merged commit 929bf9e into main Sep 9, 2026
2 checks passed
@Lixxx1
Lixxx1 deleted the fix/markdown-table-math branch September 9, 2026 14:51
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.

公式和表格无法正常渲染

1 participant