1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 15:23:29 +03:00

doc.kak: Fix rendering of indented code blocks

Fixes #2376
This commit is contained in:
Maxime Coste 2018-09-23 22:42:30 +10:00
parent dbfed1306f
commit 09546a950e

View File

@ -114,7 +114,7 @@ define-command -params 1 -hidden doc-render %{
doc-render-regex \B(?<!\\)`(?=\S)[^\n]+?(?<=\S)(?<!\\)`\B \A|.\z 'H' mono
doc-render-regex ^=\h+[^\n]+ ^=\h+ '~' title
doc-render-regex ^={2,}\h+[^\n]+ ^={2,}\h+ '' header
doc-render-regex ^-{2,}\n.*?^-{2,}\n ^-{2,}\n '' block
doc-render-regex ^\h*-{2,}\n\h*.*?^\h*-{2,}\n ^\h*-{2,}\n '' block
doc-parse-links