Skip to content

Commit

Permalink
Fix: #7 nil cfg.OutputFormats
Browse files Browse the repository at this point in the history
  • Loading branch information
pluveto authored Jan 31, 2022
1 parent 00fe5f1 commit 5141b63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ func main() {
cfg.Rename = strings.Trim(cfg.Rename, "/")
cfg.Rename = RemoveFmtUnderscore(cfg.Rename)
// -- integrated formats
if nil == cfg.OutputFormats {
cfg.OutputFormats = make(map[string]string)
}
cfg.OutputFormats["markdown"] = `![{url_fname}]({url})`
cfg.OutputFormats["url"] = `{url}`
GVerbose.TraceStruct(cfg)
Expand Down

0 comments on commit 5141b63

Please sign in to comment.