summaryrefslogtreecommitdiffstats
path: root/markup/goldmark/autoid.go
AgeCommit message (Collapse)Author
2020-12-03all: Format code with gofumptBjørn Erik Pedersen
See https://github.com/mvdan/gofumpt
2020-07-05Remove trailing hyphen from auto heading IDJoe Mooring
Applicable when autoHeadingIDType is either `github` or `github-ascii`. When autoHeadingIDType is `blackfriday`, the existing code removes trailing whitespace while iterating through the characters, using a boolean "futureDash" mechanism. Fixes #6798
2020-01-05markup/goldmark: Adjust auto ID space handlingBjørn Erik Pedersen
GitHub does not consider tabs as delimiter, see https://github.com/bep/portable-hugo-links/blob/master/blog/p2.md Closes #6710
2020-01-05markup/goldmark: Add an optional Blackfriday auto ID strategyBjørn Erik Pedersen
Fixes #6707
2020-01-05markup/goldmark: Make the autoID type config a stringBjørn Erik Pedersen
To potentially make room for one more. See #6707
2020-01-04markup/goldmark: Simplify codeBjørn Erik Pedersen
2020-01-04markup/goldmark: Make auto IDs GitHub compatibleBjørn Erik Pedersen
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