vimwiki

Personal wiki for vim
git clone https://github.com/vimwiki/vimwiki.git
Log | Files | Refs | README | LICENSE

commit 36e545572342de10f414a04878c52831ad98e427
parent be86b54914484975e09dfba27d2d94a3a81e38d9
Author: Rafael Castillo <rafael@trfs.me>
Date:   Wed, 17 Jun 2020 20:46:58 -0700

Fix blockquotes not stripping arrows

Diffstat:
Mautoload/vimwiki/html.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim @@ -926,14 +926,14 @@ function! s:process_tag_arrow_quote(line, arrow_quote) abort let lines = [] let arrow_quote = a:arrow_quote let processed = 0 - if a:line =~# '^&gt;' + if a:line =~# '^\s*&gt;' if !arrow_quote call add(lines, '<blockquote>') call add(lines, '<p>') let arrow_quote = 1 endif let processed = 1 - let stripped_line = substitute(a:line, '^&gt;\s*', '', '') + let stripped_line = substitute(a:line, '^\s*&gt;\s*', '', '') if stripped_line =~# '^\s*$' call add(lines, '</p>') call add(lines, '<p>')