Skip to content

Fix markdown syntax highlighting by mapping capture names#369

Open
matiaskorhonen wants to merge 1 commit intoCodeEditApp:mainfrom
matiaskorhonen:fix/markdown-highlighting
Open

Fix markdown syntax highlighting by mapping capture names#369
matiaskorhonen wants to merge 1 commit intoCodeEditApp:mainfrom
matiaskorhonen:fix/markdown-highlighting

Conversation

@matiaskorhonen
Copy link

Description

The markdown tree-sitter grammar uses nvim-treesitter capture names (e.g. text.title, punctuation.special) that CaptureName.fromString() didn't recognize, causing all markdown highlights to be silently dropped.

Map these to existing CaptureName cases so no new enum values or theme changes are needed.

Related Issues

Checklist

  • I read and understood the contributing guide as well as the code of conduct
  • The issues this PR addresses are related to each other
  • My changes generate no new warnings
  • My code builds and runs on my machine
  • My changes are all related to the related issue above
  • I documented my code

Screenshots

CleanShot 2026-03-14 at 22 23 43@2x

The markdown tree-sitter grammar uses nvim-treesitter capture names
(e.g. text.title, punctuation.special) that CaptureName.fromString()
didn't recognize, causing all markdown highlights to be silently dropped.

Map these to existing CaptureName cases so no new enum values or theme
changes are needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

🐞 Markdown Syntax highlighting

1 participant