diff --git a/pkg/toc/toc.go b/pkg/toc/toc.go index 38449d7..634ac08 100644 --- a/pkg/toc/toc.go +++ b/pkg/toc/toc.go @@ -38,6 +38,7 @@ func Run() { toc.Options.Path = opts.Path toc.Options.Bulleted = opts.Bulleted toc.Options.Append = opts.Append + toc.Options.Skip = opts.Skip toc.logic() } diff --git a/pkg/toc/vars.go b/pkg/toc/vars.go index c3bca49..cba3cd6 100644 --- a/pkg/toc/vars.go +++ b/pkg/toc/vars.go @@ -11,6 +11,7 @@ type tocConfig struct { Path string Bulleted bool Append bool + Skip int } type toc struct {