diff options
Diffstat (limited to 'markup/blackfriday/convert.go')
-rw-r--r-- | markup/blackfriday/convert.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/markup/blackfriday/convert.go b/markup/blackfriday/convert.go index 3df23c7ae..bbbc2b377 100644 --- a/markup/blackfriday/convert.go +++ b/markup/blackfriday/convert.go @@ -60,6 +60,10 @@ type blackfridayConverter struct { cfg converter.ProviderConfig } +func (c *blackfridayConverter) SanitizeAnchorName(s string) string { + return blackfriday.SanitizedAnchorName(s) +} + func (c *blackfridayConverter) AnchorSuffix() string { if c.bf.PlainIDAnchors { return "" @@ -204,5 +208,6 @@ var blackfridayExtensionMap = map[string]int{ } var ( - _ converter.DocumentInfo = (*blackfridayConverter)(nil) + _ converter.DocumentInfo = (*blackfridayConverter)(nil) + _ converter.AnchorNameSanitizer = (*blackfridayConverter)(nil) ) |