Skip to content

Handle caret on blank line for tables - #196

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

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

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

The blank-line exception bypasses folded-table behavior and must be guarded by the existing fold check.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Updates hidden table handling so table source remains visible when the caret is on the blank line immediately after a table.

Changes:

  • Added blank-line caret and row-editing tests.
  • Updated table visibility handling.
  • Regenerated full and lite bundles.
File summaries
File Summary
tests/hiddenSyntax/table.test.ts Added coverage for blank-line caret behavior.
src/hiddenSyntax/block.ts Moderate issue: the exception can reveal explicitly folded tables; apply it only when !folded.
dist/markedit-preview.js Regenerated full bundle.
dist/lite/markedit-preview.js Regenerated lite bundle.
Review details
  • Files reviewed: 2/4 changed files
  • Comments generated: 1
  • 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 src/hiddenSyntax/block.ts Outdated

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 blocking issues were identified.

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

@cyanzhong
cyanzhong merged commit 7f4a2dc into main Sep 19, 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