markdown

package
v0.0.0-...-4162cc6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2024 License: MIT Imports: 4 Imported by: 0

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.

func (*AbsoluteLinkTargetBlankTransformer) Transform

func (t *AbsoluteLinkTargetBlankTransformer) Transform(node *ast.Document, reader text.Reader, pc parser.Context)

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.

func (*UrlTransformer) Transform

func (t *UrlTransformer) Transform(node *ast.Document, reader text.Reader, pc parser.Context)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL