diff --git a/modules/base/markdown.go b/modules/base/markdown.go index 2158ce858..a7095a8dc 100644 --- a/modules/base/markdown.go +++ b/modules/base/markdown.go @@ -112,9 +112,9 @@ const HtmlAttributePattern = `(?:` + // optional value `\s*=\s*` + `(?P` + - `"[^\x00\p{Cc}"]*"` + // double-quoted - `'[^\x00\p{Cc}']*'` + // single-quoted - `[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted + `"[^\x00\p{Cc}"]*"|` + // double-quoted + `'[^\x00\p{Cc}']*'|` + // single-quoted + `[^\x00\p{Cc}\s"'=<>\x60]+` + // unquoted `)` + `)?` + `)`