diff --git a/pkg/toc/toc.go b/pkg/toc/toc.go index 9ede359..87f681d 100644 --- a/pkg/toc/toc.go +++ b/pkg/toc/toc.go @@ -197,7 +197,7 @@ func (t *toc) reformatMarkdown(markdown string) (string, error) { idx := startIdx[1] // end of string - finish := "" // default finish string + finish := "" // default finish string if finishIdx != nil { finish = markdown[finishIdx[0]:finishIdx[1]] markdown = (markdown[:idx]) + markdown[finishIdx[1]:]