Documentation ¶
Index ¶
- Variables
- func AddListEndComments(ctx context.Context, doc *html.Node)
- func AddSpace(ctx context.Context, doc *html.Node, ...)
- func LeafBlockAlternatives(ctx context.Context, doc *html.Node)
- func MergeAdjacent(doc *html.Node, matchFn func(*html.Node) bool)
- func MergeAdjacentTextNodes(n *html.Node)
- func RemoveEmptyCode(ctx context.Context, doc *html.Node)
- func RemoveRedundant(doc *html.Node, matchFn func(*html.Node, *html.Node) bool)
- func RenameFakeSpans(ctx context.Context, doc *html.Node)
- func SwapTags(ctx context.Context, doc *html.Node, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ListEndCommentData = "THE END"
Functions ¶
func MergeAdjacentTextNodes ¶
func RemoveRedundant ¶
func RenameFakeSpans ¶
RenameFakeSpans renames all "span" nodes to "div" if any block element is found as a child.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.