diff options
Diffstat (limited to 'markup/goldmark/render_hooks.go')
-rw-r--r-- | markup/goldmark/render_hooks.go | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/markup/goldmark/render_hooks.go b/markup/goldmark/render_hooks.go index 790b2f4ca..d72300434 100644 --- a/markup/goldmark/render_hooks.go +++ b/markup/goldmark/render_hooks.go @@ -52,7 +52,7 @@ type linkContext struct { pageInner any destination string title string - text hstring.RenderedString + text hstring.RenderedHTML plainText string *attributes.AttributesHolder } @@ -69,7 +69,7 @@ func (ctx linkContext) PageInner() any { return ctx.pageInner } -func (ctx linkContext) Text() hstring.RenderedString { +func (ctx linkContext) Text() hstring.RenderedHTML { return ctx.text } @@ -100,7 +100,7 @@ type headingContext struct { pageInner any level int anchor string - text hstring.RenderedString + text hstring.RenderedHTML plainText string *attributes.AttributesHolder } @@ -121,7 +121,7 @@ func (ctx headingContext) Anchor() string { return ctx.anchor } -func (ctx headingContext) Text() hstring.RenderedString { +func (ctx headingContext) Text() hstring.RenderedHTML { return ctx.text } @@ -199,7 +199,7 @@ func (r *hookedRenderer) renderImage(w util.BufWriter, source []byte, node ast.N pageInner: pageInner, destination: string(n.Destination), title: string(n.Title), - text: hstring.RenderedString(text), + text: hstring.RenderedHTML(text), plainText: string(n.Text(source)), AttributesHolder: attributes.New(attrs, attributes.AttributesOwnerGeneral), }, @@ -288,7 +288,7 @@ func (r *hookedRenderer) renderLink(w util.BufWriter, source []byte, node ast.No pageInner: pageInner, destination: string(n.Destination), title: string(n.Title), - text: hstring.RenderedString(text), + text: hstring.RenderedHTML(text), plainText: string(n.Text(source)), AttributesHolder: attributes.Empty, }, @@ -355,7 +355,7 @@ func (r *hookedRenderer) renderAutoLink(w util.BufWriter, source []byte, node as page: page, pageInner: pageInner, destination: url, - text: hstring.RenderedString(label), + text: hstring.RenderedHTML(label), plainText: label, AttributesHolder: attributes.Empty, }, @@ -442,7 +442,7 @@ func (r *hookedRenderer) renderHeading(w util.BufWriter, source []byte, node ast pageInner: pageInner, level: n.Level, anchor: string(anchor), - text: hstring.RenderedString(text), + text: hstring.RenderedHTML(text), plainText: string(n.Text(source)), AttributesHolder: attributes.New(n.Attributes(), attributes.AttributesOwnerGeneral), }, |