Preserve HTML Text for link render hooks

The context now have two text methods:

* Text - rendered
* PlainText

Fixes #6629
This commit is contained in:
Bjørn Erik Pedersen
2019-12-18 17:23:09 +01:00
parent 1b785a7a6d
commit 00954c5d1f
5 changed files with 79 additions and 12 deletions

View File

@@ -24,6 +24,7 @@ type LinkContext interface {
Destination() string
Title() string
Text() string
PlainText() string
}
type Render struct {