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

[BUG] markdown highlighting cannot parse `` correctly #5167

Open
iacore opened this issue May 5, 2024 · 4 comments
Open

[BUG] markdown highlighting cannot parse `` correctly #5167

iacore opened this issue May 5, 2024 · 4 comments
Labels

Comments

@iacore
Copy link

iacore commented May 5, 2024

Version of Kakoune

Kakoune v2023.08.05

Reproducer

echo "hi `` there" > /tmp/a.md
kak /tmp/a.md

Outcome

there is colored as code.

Expectations

there should be colored as text.

Additional information

No response

@iacore iacore added the bug label May 5, 2024
@thoughtpatterns
Copy link

I'm not positive which version of markdown Kakoune bases its highlighting on but I've found it most similar to GFM, whose spec states this is the intended behavior: a number of ` symbols open a code span to be closed by the same number of `.

@iacore
Copy link
Author

iacore commented Sep 5, 2024

Oh no

@thoughtpatterns
Copy link

The autoloaded highlighters for markdown are here, for reference!

@iacore
Copy link
Author

iacore commented Sep 5, 2024

It seems like kak scans any amount of ` in a sequence.

add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono

Should I close this issue? It's trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants