markdown

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage() *sitter.Language

Types

type MarkdownTree

type MarkdownTree struct {
	// contains filtered or unexported fields
}

func ParseCtx

func ParseCtx(ctx context.Context, oldTree *MarkdownTree, content []byte) (*MarkdownTree, error)

func (*MarkdownTree) BlockTree

func (t *MarkdownTree) BlockTree() *sitter.Tree

func (*MarkdownTree) Edit

func (t *MarkdownTree) Edit(edit sitter.EditInput)

func (*MarkdownTree) InlineRootNode

func (t *MarkdownTree) InlineRootNode(parent *sitter.Node) *sitter.Node

func (*MarkdownTree) InlineTree

func (t *MarkdownTree) InlineTree(parent *sitter.Node) *sitter.Tree

func (*MarkdownTree) InlineTrees

func (t *MarkdownTree) InlineTrees() []*sitter.Tree

func (*MarkdownTree) Iter

func (t *MarkdownTree) Iter(f func(node *Node) bool)

type Node

type Node struct {
	*sitter.Node
	Inline *sitter.Node
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL