I noticed that in-spite markdownStrike is defined in the bundled markdown.vim syntax file, it is not defined in a number of colorschemes.
It would be nice to include it.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I don't follow. markdown sources html.vim syntax script which should define htmlStrike. So why would this not work?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Try this:
vim --clean
:set ft=markdown
i~~foo~~<esc>
you will see foo.
Try to change coloscheme (e.g. try :colorscheme catppuccin) and you foo. becomes ~~foo~~.
You could also set a colorscheme first, and then type ~~foo~~. The strikethrough won't be displayed.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Hm, I think we rather need to promote Strikethrough to a new default group, similar to what was asked for in #17804
What do you think @habamax @dkearns ?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
markdownStrike and htmlStrike works for me (in gui, not in tui as I don't have a terminal that supports it) despite not being defined in bundled colorschemes.
The issue is the same as with bold, italic and bolditalic --> when you change colorschemes, explicit highlights (non-def-linked highlight groups) are cleared so this
image.png (view on web)after colorscheme ... becomes this
The workaround is to re-set filetype (set ft=markdown or :e)
The fix might be
Strikethrough default highlight groupcterm=strikethrough ... to (example) hi def link htmlStrike StrikethroughPS, bold, italic and bolditalic are supported by probably most of existing terminal emulators, strikethrough is not so widespread.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()