mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
markup/goldmark: Adjust auto ID space handling
GitHub does not consider tabs as delimiter, see https://github.com/bep/portable-hugo-links/blob/master/blog/p2.md Closes #6710
This commit is contained in:
@@ -40,6 +40,8 @@ Many spaces here
|
||||
Forward/slash
|
||||
Backward\slash
|
||||
Under_score
|
||||
Nonbreaking Space
|
||||
Tab Space
|
||||
`
|
||||
|
||||
expect := `
|
||||
@@ -56,6 +58,8 @@ many---spaces--here
|
||||
forwardslash
|
||||
backwardslash
|
||||
under_score
|
||||
nonbreakingspace
|
||||
tabspace
|
||||
`
|
||||
|
||||
tests, expect = strings.TrimSpace(tests), strings.TrimSpace(expect)
|
||||
|
Reference in New Issue
Block a user