From 673eeea4661189694a3fe5c4c68dd124c1592f48 Mon Sep 17 00:00:00 2001 From: Kylie McClain Date: Sun, 6 Sep 2015 21:23:21 -0400 Subject: [PATCH] rc/markdown: Fix list formatting; multiple indented bullets, unindented bullets --- rc/markdown.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/markdown.kak b/rc/markdown.kak index ab81fe51..b8394358 100644 --- a/rc/markdown.kak +++ b/rc/markdown.kak @@ -36,7 +36,7 @@ addhl -group /markdown/content regex (\A|\n\n)[^\n]+\n-{2,}\h*\n\h*$ 0:header # Atx-style header addhl -group /markdown/content regex ^(#+)(\h+)([^\n]+) 1:header -addhl -group /markdown/content regex ^\h+([-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*)*$ 0:list 1:bullet +addhl -group /markdown/content regex ^\h?+((?:[\s\t]+)?[-\*])\h+[^\n]*(\n\h+[^-\*]\S+[^\n]*\n)*$ 0:list 1:bullet addhl -group /markdown/content regex ^([-=~]+)\n[^\n\h].*?\n\1$ 0:block addhl -group /markdown/content regex (?