mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-18 17:02:06 +03:00
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.
This commit is contained in:
parent
99d1fee44c
commit
026cf8af3a
@ -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 <ret> <a-K>^-{2,}(\n|\z)<ret> S\n\z<ret> <a-k>\n<ret> <a-j> }
|
||||
try %{ execute-keys -draft \%S \n{2,}|(?<=\+)\n|^[^\n]+::\n|\n\h*[-*] <ret> <a-K>^-{2,}(\n|\z)<ret> S\n\z<ret> <a-k>\n<ret> <a-j> }
|
||||
|
||||
# Remove some line end markers
|
||||
try %{ execute-keys -draft \%s \h*(\+|:{2,})$ <ret> d }
|
||||
|
Loading…
Reference in New Issue
Block a user