Skip to content

Add syntax hidden code fences - #190

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Sep 11, 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.

🟢 Approval recommended

No unresolved review comments remain, and the changes include comprehensive test coverage.

Pull request overview

Adds hidden-syntax rendering for fenced Markdown code blocks while preserving content, folding, and Mermaid handling.

Changes:

  • Hides fence markers and adds language labels and borders.
  • Supports selection-based source reveal and folding.
  • Expands fenced-code and inline-code test coverage.
File summaries
File Description
tests/hiddenSyntax/inline.test.ts Tests inline-code behavior inside fenced blocks.
tests/hiddenSyntax/block.test.ts Tests fenced-code rendering and interactions.
src/hiddenSyntax/theme.ts Styles hidden fences and code-block boundaries.
src/hiddenSyntax/index.ts Registers fenced-code decorations.
src/hiddenSyntax/fencedCode.ts Implements fenced-code decoration logic.
Review details
  • Files reviewed: 5/7 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@cyanzhong
cyanzhong merged commit 86ccbe7 into main Sep 11, 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