aboutsummaryrefslogtreecommitdiffhomepage
path: root/markup/highlight/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/highlight/config.go')
-rw-r--r--markup/highlight/config.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/markup/highlight/config.go b/markup/highlight/config.go
index a7c5ab4cb..1bee58dc5 100644
--- a/markup/highlight/config.go
+++ b/markup/highlight/config.go
@@ -71,7 +71,7 @@ func (cfg Config) ToHTMLOptions() []html.Option {
if cfg.LineAnchors != "" {
lineAnchors = cfg.LineAnchors + "-"
}
- var options = []html.Option{
+ options := []html.Option{
html.TabWidth(cfg.TabWidth),
html.WithLineNumbers(cfg.LineNos),
html.BaseLineNumber(cfg.LineNoStart),
@@ -126,7 +126,6 @@ func ApplyLegacyConfig(cfg config.Provider, conf *Config) error {
}
return nil
-
}
func parseOptions(in string) (map[string]interface{}, error) {
@@ -199,5 +198,4 @@ func hlLinesToRanges(startLine int, s string) ([][2]int, error) {
ranges = append(ranges, r)
}
return ranges, nil
-
}