Skip to content

Add syntax hidden tables (read-only) - #192

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Sep 18, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Regenerate and commit both tracked distributable bundles so installed users receive the new table functionality.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds read-only, themed, sanitized Markdown table rendering to hidden syntax mode, with widget behavior and test coverage.

Changes:

  • Adds table parsing, rendering, styling, and CodeMirror widgets.
  • Adds DOMPurify dependency and lockfile updates.
  • Adds renderer and widget tests.
  • Committed distributable bundles still require regeneration.
File summaries
File Summary
yarn.lock Updates dependency lock data.
tests/render.test.ts Tests table rendering.
tests/hiddenSyntax/table.test.ts Tests table widget behavior.
src/styling.ts Adds editor theme CSS.
src/render.ts Renders table blocks.
src/hiddenSyntax/theme.ts Styles hidden table widgets.
src/hiddenSyntax/index.ts Enables block decorations.
src/hiddenSyntax/components/table.ts Implements read-only table widgets.
src/hiddenSyntax/block.ts Integrates table decorations and lifecycle.
package.json Adds DOMPurify dependency.
Review details
  • Files reviewed: 9/12 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread package.json
Comment thread src/hiddenSyntax/index.ts

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No unresolved review issues were identified.

Review details
  • Files reviewed: 10/13 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Rebuild and commit the shipped dist bundles so table support reaches users.

Review details

Suppressed comments (1)

src/hiddenSyntax/index.ts:60

  • This enables table rendering in the source extension, but the repository's committed dist/markedit-preview.js and dist/lite/markedit-preview.js are not updated in this PR. Those are the shipped/generated bundles, so users installing the extension will not receive the table support (and the new DOMPurify dependency) until both bundles are rebuilt and committed.
  renderedBlockDecorations,
  • Files reviewed: 10/13 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@cyanzhong
cyanzhong merged commit 264a2b0 into main Sep 18, 2026
2 checks passed
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