Allow customization of header level of TOC
Instead of forcing the TOC to always be at header level 1, allow the user to specify via the option g:vimwiki_toc_header_level what level they want. This defaults to 1, so if the user does nothing then the old behavior will remain the same.
This commit is contained in:
@ -1078,7 +1078,7 @@ function! s:process_tag_h(line, id)
|
||||
|
||||
else
|
||||
|
||||
let h_part = '<div id="'.h_id.'" class="toc"><h1 id="'.h_id.'"'
|
||||
let h_part = '<div id="'.h_id.'" class="toc"><h'.h_level.' id="'.h_id.'"'
|
||||
|
||||
endif
|
||||
|
||||
|
Reference in New Issue
Block a user