Skip to content

[codex] Add MDX source highlighting#1

Merged
lzrscg merged 1 commit into
mainfrom
codex/mdx-source-highlighting
May 29, 2026
Merged

[codex] Add MDX source highlighting#1
lzrscg merged 1 commit into
mainfrom
codex/mdx-source-highlighting

Conversation

@lzrscg
Copy link
Copy Markdown
Contributor

@lzrscg lzrscg commented May 28, 2026

Summary

  • Add source-mode MDX syntax highlighting for import/export lines, JSX-style tags and attributes, strings, punctuation, and cspec embed expressions.
  • Keep the highlighting active only in source mode so hybrid widgets remain unchanged.
  • Add an editor test assertion that source mode renders MDX highlight spans while hiding hybrid widgets.

Validation

  • npm run check -w @modularcloud/cspec-editor
  • npm run test -w @modularcloud/cspec-editor
  • Browser verification of the editor source view at the local Vite app.

@lzrscg lzrscg marked this pull request as ready for review May 29, 2026 17:25
@lzrscg lzrscg merged commit 24ff392 into main May 29, 2026
3 checks passed
@lzrscg lzrscg deleted the codex/mdx-source-highlighting branch May 29, 2026 17:25
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