mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
@@ -14,6 +14,7 @@
|
||||
package hooks
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
"github.com/gohugoio/hugo/common/hugio"
|
||||
@@ -85,12 +86,12 @@ type AttributesOptionsSliceProvider interface {
|
||||
}
|
||||
|
||||
type LinkRenderer interface {
|
||||
RenderLink(w io.Writer, ctx LinkContext) error
|
||||
RenderLink(cctx context.Context, w io.Writer, ctx LinkContext) error
|
||||
identity.Provider
|
||||
}
|
||||
|
||||
type CodeBlockRenderer interface {
|
||||
RenderCodeblock(w hugio.FlexiWriter, ctx CodeblockContext) error
|
||||
RenderCodeblock(cctx context.Context, w hugio.FlexiWriter, ctx CodeblockContext) error
|
||||
identity.Provider
|
||||
}
|
||||
|
||||
@@ -119,7 +120,7 @@ type HeadingContext interface {
|
||||
// HeadingRenderer describes a uniquely identifiable rendering hook.
|
||||
type HeadingRenderer interface {
|
||||
// Render writes the rendered content to w using the data in w.
|
||||
RenderHeading(w io.Writer, ctx HeadingContext) error
|
||||
RenderHeading(cctx context.Context, w io.Writer, ctx HeadingContext) error
|
||||
identity.Provider
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user