Skip to content

Fix code block language label for lite builds - #208

Merged
cyanzhong merged 1 commit into
mainfrom
lite
Oct 8, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
lite

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 new test cannot activate lite mode because Vitest statically replaces __FULL_BUILD__ with true.

1 open finding
What changed in this PR

Gates fenced-code syntax hiding and language labels to full builds, preserving borders in lite builds.

Changes:

  • Adds a full-build guard for hidden fences and language metadata.
  • Adds lite-mode fenced-code tests.
  • Regenerates the full distribution bundle.
File Description
src/​hiddenSyntax/​fencedCode.ts Restricts syntax hiding and labels to full builds.
tests/​hiddenSyntax/​block.test.ts Adds lite-mode behavior coverage.
dist/​markedit-preview.js Updates the generated full bundle.

🧠 Review effort: Balanced


Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.

Comment thread tests/hiddenSyntax/block.test.ts
@cyanzhong
cyanzhong merged commit 742dc5b into main Oct 8, 2026
2 checks passed
@cyanzhong
cyanzhong deleted the lite branch October 8, 2026 05:56
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