Documentation
¶
Index ¶
- func SetFormatter(newFormatter Formatter)
- type ANSITags
- func (ANSITags) Document(contents string, depth int) string
- func (ANSITags) Emphasis(contents string, depth int) string
- func (ANSITags) HardBreak(contents string, depth int) string
- func (ANSITags) Heading(contents string, depth int) string
- func (ANSITags) HorizontalLine(contents string, depth int) string
- func (ANSITags) List(contents string, depth int) string
- func (ANSITags) ListItem(contents string, depth int) string
- func (ANSITags) Paragraph(contents string, depth int) string
- func (ANSITags) Special(contents string, depth int) string
- func (ANSITags) Strong(contents string, depth int) string
- func (ANSITags) Text(contents string, depth int) string
- type Formatter
- type HTML
- func (HTML) Document(contents string, depth int) string
- func (HTML) Emphasis(contents string, depth int) string
- func (HTML) HardBreak(contents string, depth int) string
- func (HTML) Heading(contents string, depth int) string
- func (HTML) HorizontalLine(contents string, depth int) string
- func (HTML) List(contents string, depth int) string
- func (HTML) ListItem(contents string, depth int) string
- func (HTML) Paragraph(contents string, depth int) string
- func (HTML) Special(contents string, depth int) string
- func (HTML) Strong(contents string, depth int) string
- func (HTML) Text(contents string, depth int) string
- type Node
- type NodeType
- type Parser
- type ReMarkdown
- func (ReMarkdown) Document(contents string, depth int) string
- func (ReMarkdown) Emphasis(contents string, depth int) string
- func (ReMarkdown) HardBreak(contents string, depth int) string
- func (ReMarkdown) Heading(contents string, depth int) string
- func (ReMarkdown) HorizontalLine(contents string, depth int) string
- func (ReMarkdown) List(contents string, depth int) string
- func (ReMarkdown) ListItem(contents string, depth int) string
- func (ReMarkdown) Paragraph(contents string, depth int) string
- func (ReMarkdown) Special(contents string, depth int) string
- func (ReMarkdown) Strong(contents string, depth int) string
- func (ReMarkdown) Text(contents string, depth int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFormatter ¶
func SetFormatter(newFormatter Formatter)
Types ¶
type Formatter ¶
type Formatter interface {
Document(string, int) string
Paragraph(string, int) string
HorizontalLine(string, int) string
HardBreak(string, int) string
Heading(string, int) string
List(string, int) string
ListItem(string, int) string
Text(string, int) string
Strong(string, int) string
Emphasis(string, int) string
Special(string, int) string
}
type NodeType ¶
type NodeType string
NodeType identifies the kind of AST node.
const ( DocumentNode NodeType = "Document" HeadingNode NodeType = "Heading" ParagraphNode NodeType = "Paragraph" HorizontalLineNode NodeType = "HorizontalLine" HardBreakNode NodeType = "HardBreak" ListNode NodeType = "List" ListItemNode NodeType = "ListItem" TextNode NodeType = "Text" StrongNode NodeType = "Strong" EmphasisNode NodeType = "Emphasis" SpecialNode NodeType = "Special" )
type ReMarkdown ¶
type ReMarkdown struct{}
func (ReMarkdown) HorizontalLine ¶
func (ReMarkdown) HorizontalLine(contents string, depth int) string
Click to show internal directories.
Click to hide internal directories.