Skip to content

Commit 7553b05

Browse files
committed
Fix GitLab update toc
1 parent 63c934b commit 7553b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/markdown.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ function! s:DeleteExistingToc()
341341

342342
if search(l:tocEndPattern, l:flags) != 0
343343
let l:markdownStyle = matchlist(l:beginLine, l:tocBeginPattern)[1]
344-
if l:markdownStyle != "GFM" && l:markdownStyle != "Redcarpet"
344+
if l:markdownStyle != "GFM" && l:markdownStyle != "Redcarpet" && l:markdownStyle != "GitLab"
345345
let l:markdownStyle = "Unknown"
346346
else
347347
let l:endLineNumber = line(".")

0 commit comments

Comments
 (0)