Add :syn sync linebreaks=1 to improve consistency

This was reported to fix a folding issue I can't reproduce, and also
fixes some inconsistencies such as an underline style heading failing to
highlight until a redraw.

Resolves: https://github.com/tpope/vim-markdown/issues/179
This commit is contained in:
Tim Pope
2021-06-19 13:38:54 -04:00
parent 3cdd8a9b76
commit addd5abaa6

View File

@@ -51,6 +51,7 @@ if !exists('g:markdown_minlines')
let g:markdown_minlines = 50
endif
execute 'syn sync minlines=' . g:markdown_minlines
syn sync linebreaks=1
syn case ignore
syn match markdownValid '[<>]\c[a-z/$!]\@!' transparent contains=NONE