Categorygithub.com/fbaube/gtree
modulepackage
0.0.0-20240425064859-e2f8bfb263d2
Repository: https://github.com/fbaube/gtree.git
Documentation: pkg.go.dev

# README

gtree

Generalized Golang trees for mixed content from diverse source formats

# Functions

No description provided by the author
No description provided by the author
IsFenced bool // Fenced code block, or else an indented one Info []byte // This holds the info string FenceChar byte FenceLength int FenceOffset int.
No description provided by the author
Level int // This holds the heading level number HeadingID string // This might hold heading ID, if present IsTitleblock bool // Specifies whether it's a title block.
Destination []byte // Destination is what goes into a href Title []byte // The tooltip thing that goes in a title attribute NoteID int // The S/N of a footnote, or 0 if not a footnote Footnote *Node // If footnote, a direct link to the FN Node, else nil.
ListFlags ListType Tight bool // Skip <p>s around list item data if true BulletChar byte // '*', '+' or '-' in bullet lists Delimiter byte // '.' or ')' after the number in ordered lists RefLink []byte // If not nil, turns this list item into a footnote item and triggers different rendering IsFootnotesList bool // This is a list of footnotes.
No description provided by the author
GTokenizeMDbuffer takes the raw XML and parses it into a slice of `GToken`s.
No description provided by the author
No description provided by the author
No description provided by the author
NewGTag initializes the node with parser results.
NewGTagFromBFnode basically just assigns to this field: - gparse.GToken which comprises: - GTagTokType - XName - GAttList.
NewGTagFromGToken embeds the GToken and processes it.
NewGTagFromHtmltoken is TODO.
No description provided by the author
NewGTokenFromHtmlToken does not recognise and return Processing Instructions !.
NewGTreeFromGTags is TBS.
NewGTreeFromMarkdownFile is a convenience function that reads in the file, which is presumed to be Markdown (MDITA flavor), then tokenizes it, and then passes the buffered file contents to the next function, below.
No description provided by the author
No description provided by the author

# Structs

GTag is a generic golang XML tag, used mainly for representing XML tags (or their Markdown equivalents) in a mixed content document.
GTree is the workspace for AND the results of parsing a hierarchically organised markup file.
No description provided by the author

# Type aliases

GRootTag makes sure that assignments to/from a root node are explicit.
gagstack is a LIFO stack for GTags.