Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve markdown heading highlights #12417

Conversation

uncenter
Copy link
Contributor

@uncenter uncenter commented Jan 5, 2025

This PR changes the markdown highlights to apply the @markup.heading.<n> (e.g. @markup.heading.3) captures to the entire heading - not just the text content, specifically including the marker (## part of ## ABC). I have tested this and can confirm that if the markup.heading.marker key is set in the theme configuration, that applies to the headers. If it isn't set, the @markup.heading.<n> capture styles apply.

@the-mikedavis the-mikedavis merged commit 6c9619d into helix-editor:master Jan 5, 2025
6 checks passed
@uncenter uncenter deleted the markdown-heading-capture-highlights branch January 5, 2025 22:45
Desdaemon pushed a commit to Desdaemon/helix that referenced this pull request Jan 6, 2025
diucicd pushed a commit to diucicd/helix that referenced this pull request Jan 8, 2025
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