Fix blockquotes not stripping arrows

This commit is contained in:
Rafael Castillo 2020-06-17 20:46:58 -07:00 committed by Tinmarino
parent be86b54914
commit 36e5455723
1 changed files with 2 additions and 2 deletions

View File

@ -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 =~# '^>'
if a:line =~# '^\s*>'
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>')