mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Add autoID for definition terms
Fixes #13403 See #11566 Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
@@ -41,6 +41,10 @@ type Config struct {
|
||||
AsciidocExt asciidocext_config.Config
|
||||
}
|
||||
|
||||
func (c *Config) Init() error {
|
||||
return c.Goldmark.Init()
|
||||
}
|
||||
|
||||
func Decode(cfg config.Provider) (conf Config, err error) {
|
||||
conf = Default
|
||||
|
||||
@@ -57,6 +61,10 @@ func Decode(cfg config.Provider) (conf Config, err error) {
|
||||
return
|
||||
}
|
||||
|
||||
if err = conf.Init(); err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
if err = highlight.ApplyLegacyConfig(cfg, &conf.Highlight); err != nil {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user