Documentation ¶
Index ¶
- type Block
- type BlockKind
- type Blocks
- type CodeBlock
- func (b *CodeBlock) Attributes() map[string]string
- func (b *CodeBlock) Content() []byte
- func (b *CodeBlock) Intro() string
- func (CodeBlock) Kind() BlockKind
- func (b *CodeBlock) Language() string
- func (b *CodeBlock) Lines() []string
- func (b *CodeBlock) Name() string
- func (b *CodeBlock) Unwrap() ast.Node
- func (b *CodeBlock) Value() []byte
- type CodeBlocks
- type Document
- type InnerBlock
- type MarkdownBlock
- type Node
- type Renderer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeBlock ¶
type CodeBlock struct {
// contains filtered or unexported fields
}
func (*CodeBlock) Attributes ¶
type CodeBlocks ¶
type CodeBlocks []*CodeBlock
func CollectCodeBlocks ¶ added in v0.4.0
func CollectCodeBlocks(node *Node) (result CodeBlocks)
func (CodeBlocks) Lookup ¶
func (b CodeBlocks) Lookup(name string) *CodeBlock
func (CodeBlocks) Names ¶
func (b CodeBlocks) Names() (result []string)
type InnerBlock ¶ added in v0.4.0
type InnerBlock struct {
// contains filtered or unexported fields
}
InnerBlock represents a non-leaf block. It helps to handle nested fenced code blocks for block quotes and list items.
func (InnerBlock) Kind ¶ added in v0.4.0
func (InnerBlock) Kind() BlockKind
func (*InnerBlock) Unwrap ¶ added in v0.4.0
func (b *InnerBlock) Unwrap() ast.Node
func (*InnerBlock) Value ¶ added in v0.4.0
func (b *InnerBlock) Value() []byte
type MarkdownBlock ¶
type MarkdownBlock struct {
// contains filtered or unexported fields
}
func (MarkdownBlock) Kind ¶ added in v0.4.0
func (MarkdownBlock) Kind() BlockKind
func (*MarkdownBlock) Unwrap ¶ added in v0.4.0
func (b *MarkdownBlock) Unwrap() ast.Node
func (*MarkdownBlock) Value ¶ added in v0.4.0
func (b *MarkdownBlock) Value() []byte
Click to show internal directories.
Click to hide internal directories.