diff options
author | 2024-04-10 12:04:27 +0100 | |
---|---|---|
committer | 2024-04-10 12:04:27 +0100 | |
commit | 15733cddb22de81475d1934be100cd3960668c43 (patch) | |
tree | 1e5b82168507de86d5840e2436312d714ccdce4a /vendor/github.com/yuin/goldmark/renderer/html/html.go | |
parent | [chore]: Bump golang.org/x/oauth2 from 0.18.0 to 0.19.0 (#2816) (diff) | |
download | gotosocial-15733cddb22de81475d1934be100cd3960668c43.tar.xz |
[chore]: Bump github.com/yuin/goldmark from 1.7.0 to 1.7.1 (#2819)v0.15.0
Bumps [github.com/yuin/goldmark](https://github.com/yuin/goldmark) from 1.7.0 to 1.7.1.
- [Release notes](https://github.com/yuin/goldmark/releases)
- [Commits](https://github.com/yuin/goldmark/compare/v1.7.0...v1.7.1)
---
updated-dependencies:
- dependency-name: github.com/yuin/goldmark
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Diffstat (limited to 'vendor/github.com/yuin/goldmark/renderer/html/html.go')
-rw-r--r-- | vendor/github.com/yuin/goldmark/renderer/html/html.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/vendor/github.com/yuin/goldmark/renderer/html/html.go b/vendor/github.com/yuin/goldmark/renderer/html/html.go index 8738c2a1b..75ac6dbfa 100644 --- a/vendor/github.com/yuin/goldmark/renderer/html/html.go +++ b/vendor/github.com/yuin/goldmark/renderer/html/html.go @@ -786,7 +786,14 @@ func RenderAttributes(w util.BufWriter, node ast.Node, filter util.BytesFilter) _, _ = w.Write(attr.Name) _, _ = w.WriteString(`="`) // TODO: convert numeric values to strings - _, _ = w.Write(util.EscapeHTML(attr.Value.([]byte))) + var value []byte + switch typed := attr.Value.(type) { + case []byte: + value = typed + case string: + value = util.StringToReadOnlyBytes(typed) + } + _, _ = w.Write(util.EscapeHTML(value)) _ = w.WriteByte('"') } } |