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

Markdown highlight injection matches on substring, not only full text #13182

Open
aster-void opened this issue Mar 24, 2025 · 0 comments
Open
Labels
C-bug Category: This is a bug

Comments

@aster-void
Copy link
Contributor

Summary

Image

I expect this to only match js and not any string that contains string "js"

Reproduction Steps

I tried this:

  1. nix run github:helix-editor/helix highlight.md
  2. write the text in the screenshot

I expected this to happen:

fooba_bazjs doesn't highlight

Instead, this happened:

helix highlighted it as javascript

Helix log

~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines

Platform

Linux

Terminal Emulator

kitty 0.40.0 created by Kovid Goyal

Installation Method

runned the flake directly

Helix Version

helix 25.01.1 (13b2dc3)

@aster-void aster-void added the C-bug Category: This is a bug label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

1 participant