镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix markdown syntax highlighting by mapping capture names - #369

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

matiaskorhonen wants to merge 1 commit into
CodeEditApp:mainfrom
matiaskorhonen:fix/markdown-highlighting

Conversation

@matiaskorhonen

Copy link
Copy Markdown

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>

This branch has not been deployed

No deployments
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