From eedc26bfe6112eb107ba6d8678111387d6de3727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 3 Jun 2021 02:00:10 +0200 Subject: [PATCH] Fix self-link for TOC links. Previously TOC links contained a closing -tag, but lacked the accompanying start tag, leading to invalid HTML. This fixes that, along with placing class="justcenter" on the correct tag once again. --- autoload/vimwiki/html.vim | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/autoload/vimwiki/html.vim b/autoload/vimwiki/html.vim index b075bdd..3022770 100644 --- a/autoload/vimwiki/html.vim +++ b/autoload/vimwiki/html.vim @@ -1236,24 +1236,26 @@ function! s:process_tag_h(line, id) abort endif let h_complete_id = s:escape_html_attribute(h_complete_id) let h_part = '
' - let h_part .= '' - let h_part .= '' else - let h_part = '' + let line = h_part.a_tag.h_text.'
' let processed = 1 endif