Skip to content

Commit

Permalink
chore: change default finish string to 'tocstop'
Browse files Browse the repository at this point in the history
  • Loading branch information
ycd committed Jan 24, 2021
1 parent f0cff26 commit 421ff18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/toc/toc.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (t *toc) reformatMarkdown(markdown string) (string, error) {

idx := startIdx[1] // end of <!--toc--> string

finish := "<!-- end of toc -->" // default finish string
finish := "<!-- tocstop -->" // default finish string
if finishIdx != nil {
finish = markdown[finishIdx[0]:finishIdx[1]]
markdown = (markdown[:idx]) + markdown[finishIdx[1]:]
Expand Down

0 comments on commit 421ff18

Please sign in to comment.