From 026cf8af3afe09ae4a328d8b5e09fc198153abad Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 22 Feb 2018 22:09:00 +1100 Subject: [PATCH] doc.kak: fix handling of lines begining with * or - Those were considered as any other lines for paragraph joining, threat them as a new paragraph start, to correctly handle asciidoc lists. --- rc/core/doc.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/core/doc.kak b/rc/core/doc.kak index b6a21671..f19dfed0 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -94,7 +94,7 @@ define-command -params 1 -hidden doc-render %{ doc-parse-anchors # Join paragraphs together - try %{ execute-keys -draft \%S \n{2,}|(?<=\+)\n|^[^\n]+::\n ^-{2,}(\n|\z) S\n\z \n } + try %{ execute-keys -draft \%S \n{2,}|(?<=\+)\n|^[^\n]+::\n|\n\h*[-*] ^-{2,}(\n|\z) S\n\z \n } # Remove some line end markers try %{ execute-keys -draft \%s \h*(\+|:{2,})$ d }