From addd5abaa66f015802ec351cd67893f6e521751e Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 19 Jun 2021 13:38:54 -0400 Subject: [PATCH] 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 --- syntax/markdown.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index ec4205c..436bbe9 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -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