summaryrefslogtreecommitdiffstats
path: root/markup/converter/hooks/hooks.go
diff options
context:
space:
mode:
Diffstat (limited to 'markup/converter/hooks/hooks.go')
-rw-r--r--markup/converter/hooks/hooks.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/markup/converter/hooks/hooks.go b/markup/converter/hooks/hooks.go
index 55d7c1127..5c7b9692d 100644
--- a/markup/converter/hooks/hooks.go
+++ b/markup/converter/hooks/hooks.go
@@ -31,6 +31,7 @@ type AttributesProvider interface {
Attributes() map[string]any
}
+// LinkContext is the context passed to a link render hook.
type LinkContext interface {
// The Page being rendered.
Page() any
@@ -48,6 +49,7 @@ type LinkContext interface {
PlainText() string
}
+// ImageLinkContext is the context passed to a image link render hook.
type ImageLinkContext interface {
LinkContext