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:
Bjørn Erik Pedersen
2020-01-05 15:58:14 +01:00
parent d62ede8e9e
commit 9b6e61464b
2 changed files with 5 additions and 5 deletions

View File

@@ -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)