mawww / kakoune

mawww's experiment for a better code editor
http://kakoune.org
The Unlicense
9.92k stars 714 forks source link

Backtick messing highlighting in Markdown #3314

Open alexherbo2 opened 4 years ago

alexherbo2 commented 4 years ago
- <kbd>g</kbd>, <kbd>`</kbd>: Grave quote string

Everything after the backtick is highlighted as code.

nonumeros commented 4 years ago

yes.it's just off that on vim for example you can get away with

<kbd>
    `
</kbd>

and with kak one would probably have to

<kbd>
    `</n
    `</kbd>
</kbd>

which is even worse

But in all honesty, the one issue I'm looking forward to with kak in a not so happy-go-lucky way and in the near future would be with syncing off ibig files highlighting the same way than vim does and fails too, even with a moderate number of lines on its syntax sync maxlines settings.

danr commented 4 years ago

Backticks seem to be a little mess in md, tried to get some intuition with them using babelmark but failing

nonumeros commented 4 years ago

... tried to get some intuition with them using babelmark but failing

Thanks for the link @danr ... it's a nice tool for comparison

Testing <kbd>`</kbd> simultaneously with kak and neovim along with Github Flavored Markdown through https://github.com/joeyespo/grip just returned a slightly inconvenient https://github.com/joeyespo/grip/blob/master/grip/templates/limit.html which disallowed me - unless logged in - to continue...

GitHub imposes a limit of 60 requests/hour when using their API without authentication.

But I nonetheless tested it under https://github.com/yuin/goldmark/ - not blackfriday - and was getting that awkward result with kak.