Documentation ¶
Index ¶
- Variables
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var DynamicRefTexts = sync.Map{}
Functions ¶
func AutoFlushBlockTree ¶
func AutoFlushBlockTree()
func CeilBlockCount ¶
func CeilTreeCount ¶
func ContainsMarker ¶
func CountBlockNodes ¶
func CountBlocks ¶
func CountBlocks() (ret int)
func CountTrees ¶
func CountTrees() (ret int)
func FromAbbrType ¶
func GetBlockRef ¶
func GetDocTitleImgPath ¶
func GetNotExistPaths ¶
func GetRedundantPaths ¶
func GetRootUpdated ¶
func HeadingLevel ¶
func IndexBlockTree ¶
func InitBlockTree ¶
func InitBlockTree(force bool)
func IsBlockRef ¶
func IsChartCodeBlockCode ¶
func IsInFoldedHeading ¶
func MoveFoldHeading ¶
func NodeStaticMdContent ¶
func ReindexBlockTree ¶
func RemoveBlockTree ¶
func RemoveBlockTree(id string)
func RemoveBlockTreesByBoxID ¶
func RemoveBlockTreesByPath ¶
func RemoveBlockTreesByPath(path string)
func RemoveBlockTreesByPathPrefix ¶
func RemoveBlockTreesByPathPrefix(pathPrefix string)
func RemoveBlockTreesByRootID ¶
func RemoveBlockTreesByRootID(rootID string)
func RootChildIDs ¶
func SaveBlockTree ¶
func SaveBlockTree(force bool)
func SetBlockTreePath ¶
func SetDynamicBlockRefText ¶
func SubTypeAbbr ¶
func TopHeadingLevel ¶
Types ¶
type BlockTree ¶
type BlockTree struct { ID string // 块 ID RootID string // 根 ID ParentID string // 父 ID BoxID string // 笔记本 ID Path string // 文档数据路径 HPath string // 文档可读路径 Updated string // 更新时间 }
func GetBlockTree ¶
func GetBlockTreeByPath ¶
func GetBlockTreeRootByHPath ¶
func GetBlockTreeRootByPath ¶
Click to show internal directories.
Click to hide internal directories.