summaryrefslogtreecommitdiffstats
path: root/hugolib/config.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-26 11:21:11 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-07-26 16:28:16 +0200
commitc7252224c4fecfe8321f31b901e2510d98b657c4 (patch)
tree3a765c579bff92160ab08a1dc563055e4b18f9dc /hugolib/config.go
parente09d7882c88812bedb2c2e66b68c7eed21213dbc (diff)
Deprecate Blackfriday and fix a potential deadlock in config
Note that the deadlock has not been seen earlier, in tests on in real Hugo sites. Fixes #8792 Fixes #8791
Diffstat (limited to 'hugolib/config.go')
-rw-r--r--hugolib/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/config.go b/hugolib/config.go
index 96114fad1..5f07a4571 100644
--- a/hugolib/config.go
+++ b/hugolib/config.go
@@ -107,12 +107,18 @@ func LoadConfig(d ConfigSourceDescriptor, doWithConfig ...func(cfg config.Provid
}
}
+ // Config deprecations.
// We made this a Glob pattern in Hugo 0.75, we don't need both.
if l.cfg.GetBool("ignoreVendor") {
helpers.Deprecated("--ignoreVendor", "--ignoreVendorPaths **", true)
l.cfg.Set("ignoreVendorPaths", "**")
}
+ if l.cfg.GetString("markup.defaultMarkdownHandler") == "blackfriday" {
+ helpers.Deprecated("markup.defaultMarkdownHandler=blackfriday", "See https://gohugo.io//content-management/formats/#list-of-content-formats", false)
+
+ }
+
// Some settings are used before we're done collecting all settings,
// so apply OS environment both before and after.
if err := l.applyOsEnvOverrides(d.Environ); err != nil {