From 09a45a2e964e1efb39335926b2b88ce71e460ee4 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Wed, 27 May 2020 18:21:51 +0800 Subject: [PATCH] Fix setext-style markdown header highlight Reproduce: - item header ------ --- rc/filetype/markdown.kak | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/filetype/markdown.kak b/rc/filetype/markdown.kak index 6483f158..6c2d17ee 100644 --- a/rc/filetype/markdown.kak +++ b/rc/filetype/markdown.kak @@ -66,8 +66,8 @@ add-highlighter shared/markdown/listblock/content default-region ref markdown/in add-highlighter shared/markdown/inline/code region -match-capture (`+) (`+) fill mono # Setext-style header -add-highlighter shared/markdown/inline/text/ regex (\A|\n\n)[^\n]+\n={2,}\h*\n\h*$ 0:title -add-highlighter shared/markdown/inline/text/ regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header +add-highlighter shared/markdown/inline/text/ regex (\A|\n)[^\n]+\n={2,}\h*\n\h*$ 0:title +add-highlighter shared/markdown/inline/text/ regex (\A|\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header # Atx-style header add-highlighter shared/markdown/inline/text/ regex ^#[^\n]* 0:header