Versions in this module Expand all Collapse all v0 v0.0.2 Jan 30, 2023 Changes in this version + var DynamicRefTexts = sync.Map + func AutoFlushBlockTree() + func CeilBlockCount(count int) int + func CeilTreeCount(count int) int + func ContainsMarker(str string) bool + func CountBlockNodes(node *ast.Node) (ret int) + func CountBlocks() (ret int) + func CountTrees() (ret int) + func ExportNodeStdMd(node *ast.Node, luteEngine *lute.Lute) string + func FirstLeafBlock(node *ast.Node) (ret *ast.Node) + func FormatNode(node *ast.Node, luteEngine *lute.Lute) string + func FromAbbrType(abbrType string) string + func GetBlockRef(n *ast.Node) (blockRefID, blockRefText, blockRefSubtype string) + func GetDocTitleImgPath(root *ast.Node) (ret string) + func GetNodeInTree(tree *parse.Tree, id string) (ret *ast.Node) + func GetNotExistPaths(boxID string, paths []string) (ret []string) + func GetRedundantPaths(boxID string, paths []string) (ret []string) + func GetRootUpdated() (ret map[string]string) + func HeadingChildren(heading *ast.Node) (ret []*ast.Node) + func HeadingLevel(node *ast.Node) int + func HeadingParent(node *ast.Node) *ast.Node + func IALStr(n *ast.Node) string + func IndexBlockTree(tree *parse.Tree) + func InitBlockTree(force bool) + func IsBlockRef(n *ast.Node) bool + func IsChartCodeBlockCode(code *ast.Node) bool + func IsInFoldedHeading(node, currentHeading *ast.Node) bool + func IsMarker(token byte) bool + func MoveFoldHeading(updateNode, oldNode *ast.Node) + func NewTree(boxID, p, hp, title string) *parse.Tree + func NodeHash(node *ast.Node, tree *parse.Tree, luteEngine *lute.Lute) string + func NodeStaticContent(node *ast.Node, excludeTypes []string) string + func NodeStaticMdContent(node *ast.Node, luteEngine *lute.Lute) (md, content string) + func ParentBlock(node *ast.Node) *ast.Node + func ParentNodes(node *ast.Node) (parents []*ast.Node) + func ReindexBlockTree(tree *parse.Tree) + func RemoveBlockTree(id string) + func RemoveBlockTreesByBoxID(boxID string) (ids []string) + func RemoveBlockTreesByPath(path string) + func RemoveBlockTreesByPathPrefix(pathPrefix string) + func RemoveBlockTreesByRootID(rootID string) + func RootChildIDs(rootID string) (ret []string) + func SaveBlockTree(force bool) + func SetBlockTreePath(tree *parse.Tree) + func SetDynamicBlockRefText(blockRef *ast.Node, refText string) + func StatTree(tree *parse.Tree) (ret *util.BlockStatResult) + func SubTypeAbbr(n *ast.Node) string + func SuperBlockHeading(sb *ast.Node) *ast.Node + func SuperBlockLastHeading(sb *ast.Node) *ast.Node + func TopHeadingLevel(tree *parse.Tree) (ret int) + func TreeRoot(node *ast.Node) *ast.Node + func TypeAbbr(nodeType string) string + type BlockTree struct + BoxID string + HPath string + ID string + ParentID string + Path string + RootID string + Updated string + func GetBlockTree(id string) *BlockTree + func GetBlockTreeByPath(path string) *BlockTree + func GetBlockTreeRootByHPath(boxID, hPath string) *BlockTree + func GetBlockTreeRootByPath(boxID, path string) *BlockTree