mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
markup/goldmark: Make auto IDs GitHub compatible
You can turn off this behaviour: ```toml [markup] [markup.goldmark] [markup.goldmark.parser] autoHeadingIDAsciiOnly = true ``` Note that the `anchorize` now adapts its behaviour depending on the default Markdown handler. Fixes #6616
This commit is contained in:
@@ -69,6 +69,10 @@ type Parser struct {
|
||||
// auto generated heading ids.
|
||||
AutoHeadingID bool
|
||||
|
||||
// When AutoHeadingID is enabled this will generate IDs with Ascii
|
||||
// characters only.
|
||||
AutoHeadingIDAsciiOnly bool
|
||||
|
||||
// Enables custom attributes.
|
||||
Attribute bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user