mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +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:
@@ -87,6 +87,11 @@ type TableOfContentsProvider interface {
|
||||
TableOfContents() tableofcontents.Root
|
||||
}
|
||||
|
||||
// AnchorNameSanitizer tells how a converter sanitizes anchor names.
|
||||
type AnchorNameSanitizer interface {
|
||||
SanitizeAnchorName(s string) string
|
||||
}
|
||||
|
||||
// Bytes holds a byte slice and implements the Result interface.
|
||||
type Bytes []byte
|
||||
|
||||
|
Reference in New Issue
Block a user