Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbsoluteLinkTargetBlankTransformer ¶
type AbsoluteLinkTargetBlankTransformer struct { }
func NewAbsoluteLinkTargetBlankTransformer ¶
func NewAbsoluteLinkTargetBlankTransformer() *AbsoluteLinkTargetBlankTransformer
NewAbsoluteLinkTargetBlankTransformer transforms links with absolute urls so that they open in a new tab.
type UrlTransformer ¶
type UrlTransformer struct {
// contains filtered or unexported fields
}
func NewUrlTransformer ¶
func NewUrlTransformer(transform func(string) string) *UrlTransformer
NewUrlTransformer transforms urls from links and images using the provided transform function.
Click to show internal directories.
Click to hide internal directories.