summaryrefslogtreecommitdiffstats
path: root/markup/converter/hooks
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-18 17:23:09 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2019-12-18 22:55:19 +0100
commit00954c5d1fda0b18cd1b847ee580d5f4caa76c70 (patch)
treeef0c4000f73f4c1cbe5527a52270006bac01d2d1 /markup/converter/hooks
parent1b785a7a6d3c264e39e4976c59b618c0ac1ba5f9 (diff)
Preserve HTML Text for link render hooks
The context now have two text methods: * Text - rendered * PlainText Fixes #6629
Diffstat (limited to 'markup/converter/hooks')
-rw-r--r--markup/converter/hooks/hooks.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/markup/converter/hooks/hooks.go b/markup/converter/hooks/hooks.go
index 63beacc37..5dfb09e2d 100644
--- a/markup/converter/hooks/hooks.go
+++ b/markup/converter/hooks/hooks.go
@@ -24,6 +24,7 @@ type LinkContext interface {
Destination() string
Title() string
Text() string
+ PlainText() string
}
type Render struct {