markdown

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = modules.NewModule(
	markdownDecodeFunc,
	markdownEncodeFunc,
	markdownHTMLFunc,

	markdownTextFunc,

	markdownHeadingsFunc,
	markdownLinksFunc,
	markdownImagesFunc,
	markdownParagraphsFunc,
	markdownCodeBlocksFunc,
	markdownBlockquotesFunc,

	markdownLinkURLFunc,
	markdownLinkSetURLFunc,
	markdownLinkTextFunc,
	markdownLinkSetTitleFunc,

	markdownImageURLFunc,
	markdownImageSetURLFunc,
	markdownImageAltFunc,
	markdownImageSetAltFunc,

	markdownRemoveFunc,
	markdownAppendFunc,
	markdownPrependFunc,

	markdownFindFunc,
	markdownFindAllFunc,
	markdownIsFunc,
)

Functions

func TypeMatches

func TypeMatches(node ast.Node, selector string) bool

Types

type Blockquote

type Blockquote struct {
	*Node
}

type CodeBlock

type CodeBlock struct {
	*Node
}

type Document

type Document struct {
	Root ast.Node

	Source  []byte
	Sources [][]byte
	// contains filtered or unexported fields
}

type Heading

type Heading struct {
	*Node
	Level int
}

type Image

type Image struct {
	*Node
}
type Link struct {
	*Node
}

type Node

type Node struct {
	Document *Document
	Node     ast.Node
}

type Nodeish

type Nodeish interface {
	// contains filtered or unexported methods
}

type Paragraph

type Paragraph struct {
	*Node
}

type Searchable

type Searchable interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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