diff --git a/rc/core/doc.kak b/rc/core/doc.kak index 789d8c71..f1dbc850 100644 --- a/rc/core/doc.kak +++ b/rc/core/doc.kak @@ -104,7 +104,10 @@ define-command -params 1 -hidden doc-render %{ doc-parse-anchors # Join paragraphs together - try %{ execute-keys -draft \%S \n{2,}|(?<=\+)\n|^[^\n]+::\n ^\h*-{2,}(\n|\z) S\n\z \n } + try %{ + execute-keys -draft '%S\n{2,}|(?<=\+)\n|^[^\n]+::\n|^\h*[*-]\h+' \ + ^\h*-{2,}(\n|\z) S\n\z \n + } # Remove some line end markers try %{ execute-keys -draft \%s \h*(\+|:{2,})$ d }