Documentation ¶
Index ¶
- func GetBlockType(block string) int
- func IsNumeric(r rune) bool
- func ParseMDBlocks(md string) []string
- type HtmlNode
- type InertParserResult
- type TextNode
- func (node TextNode) Split(delim string, splitType int) ([]TextNode, error)
- func (node TextNode) SplitExp(pattern string, marshal func([]string) TextNode) ([]TextNode, error)
- func (node TextNode) SplitImageNodes() ([]TextNode, error)
- func (node TextNode) SplitLinkNodes() ([]TextNode, error)
- func (node TextNode) ToHTMLNode() (HtmlNode, error)
- type TextNodeSlice
- func (nodeList TextNodeSlice) ForEach(f func(TextNode))
- func (nodeList TextNodeSlice) Split(delim string, splitType int) ([]TextNode, error)
- func (nodeList TextNodeSlice) SplitAll() ([]TextNode, error)
- func (nodeList TextNodeSlice) SplitFunc(split TextNodeSplitFunc) (TextNodeSlice, error)
- func (nodeList TextNodeSlice) SplitImageNodes() ([]TextNode, error)
- func (nodeList TextNodeSlice) SplitLinkNodes() ([]TextNode, error)
- func (nodeList TextNodeSlice) ToString() string
- type TextNodeSplitFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlockType ¶
func ParseMDBlocks ¶
Types ¶
type HtmlNode ¶
func BlocksToHTMLNodes ¶
func NewHtmlNode ¶
func (*HtmlNode) ProcessInnerText ¶
func (node *HtmlNode) ProcessInnerText()
func (*HtmlNode) PropsToHTML ¶
func (*HtmlNode) UnescapeMD ¶
func (node *HtmlNode) UnescapeMD()
type InertParserResult ¶
func MDtoHTML ¶
func MDtoHTML(src string) (InertParserResult, error)
type TextNode ¶
func (TextNode) SplitImageNodes ¶
func (TextNode) SplitLinkNodes ¶
NOTE: This will also match images, and so should be run after SplitImageNodes
func (TextNode) ToHTMLNode ¶
type TextNodeSlice ¶
type TextNodeSlice []TextNode
func (TextNodeSlice) ForEach ¶
func (nodeList TextNodeSlice) ForEach(f func(TextNode))
func (TextNodeSlice) Split ¶
func (nodeList TextNodeSlice) Split(delim string, splitType int) ([]TextNode, error)
func (TextNodeSlice) SplitAll ¶
func (nodeList TextNodeSlice) SplitAll() ([]TextNode, error)
func (TextNodeSlice) SplitFunc ¶
func (nodeList TextNodeSlice) SplitFunc(split TextNodeSplitFunc) (TextNodeSlice, error)
func (TextNodeSlice) SplitImageNodes ¶
func (nodeList TextNodeSlice) SplitImageNodes() ([]TextNode, error)
func (TextNodeSlice) SplitLinkNodes ¶
func (nodeList TextNodeSlice) SplitLinkNodes() ([]TextNode, error)
func (TextNodeSlice) ToString ¶
func (nodeList TextNodeSlice) ToString() string
type TextNodeSplitFunc ¶
Click to show internal directories.
Click to hide internal directories.