diff --git a/util.go b/util.go index 2dc42e1..3694820 100644 --- a/util.go +++ b/util.go @@ -24,6 +24,7 @@ func processTarget(source string) string { return strings.TrimSuffix(source, ".md") } res := "/" + strings.TrimSuffix(strings.TrimSuffix(source, ".html"), ".md") + res, _ = url.PathUnescape(res) res = strings.Split(res, "#")[0] res = strings.TrimSpace(res) return UnicodeSanitize(res)