Skip to content

Commit

Permalink
Add :syn sync linebreaks=1 to improve consistency
Browse files Browse the repository at this point in the history
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: #179
  • Loading branch information
tpope committed Jun 19, 2021
1 parent 3cdd8a9 commit addd5ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syntax/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit addd5ab

Please sign in to comment.