Add autoID for definition terms

Fixes #13403
See #11566

Co-authored-by: Joe Mooring <joe@mooring.com>
This commit is contained in:
Bjørn Erik Pedersen
2025-02-15 17:13:20 +01:00
parent 9c2f8ec61b
commit 157d3703c3
9 changed files with 262 additions and 47 deletions

View File

@@ -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
}