vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Heading Highlighting problem

Open Jxck opened this issue 6 years ago • 1 comments

from this commit https://github.com/plasticboy/vim-markdown/commit/3f34995e77ea238730d3a08fc051647282922af6

cause highlight heading from

image

to

image

I wanna highlight # too as previous. so, could you give us a option to switching previous mode ?

Jxck avatar Nov 12 '18 03:11 Jxck

I had this problem too. I wrote my own as a workaround:

syn region md_a_text matchgroup=md_a_mark start=/<\S\@=/ end=/\S\@=>/
syn region md_b_text matchgroup=md_b_mark start=/\*\*/ end=/\*\*/
syn region md_h1_text matchgroup=md_h_mark start=/^# / end=/$/
syn region md_h2_text matchgroup=md_h_mark start=/^## / end=/$/
syn region md_pre_text matchgroup=md_pre_mark start=/^\~\~\~/ end=/^\~\~\~$/
syn region md_pre_text matchgroup=md_pre_mark start=/`/ end=/`/
" Read a small amount before the cursor
syn sync minlines=60

89z avatar Nov 22 '20 20:11 89z