Documentation
¶
Index ¶
- Variables
- func Decode(root *Node, opts ...DecoderOption) (node ast.Node, source astsrc.ASTSource, err error)
- func DecodeMetadata(meta *Metadata) *nodes.ContentMeta
- func DefaultAttributeDecoder(attr *Attribute) (res ast.Attribute, err error)
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)deprecated
- func (x *Attribute) GetBytes() []byte
- func (x *Attribute) GetName() []byte
- func (x *Attribute) GetStr() string
- func (x *Attribute) GetValue() isAttribute_Value
- func (*Attribute) ProtoMessage()
- func (x *Attribute) ProtoReflect() protoreflect.Message
- func (x *Attribute) Reset()
- func (x *Attribute) String() string
- type AttributeDecoder
- type AttributeEncoder
- type Attribute_Bytes
- type Attribute_Str
- type AutoLink
- func (*AutoLink) Descriptor() ([]byte, []int)deprecated
- func (x *AutoLink) GetBase() *BaseNode
- func (x *AutoLink) GetProtocol() []byte
- func (x *AutoLink) GetType() AutoLinkType
- func (x *AutoLink) GetValue() []byte
- func (*AutoLink) ProtoMessage()
- func (x *AutoLink) ProtoReflect() protoreflect.Message
- func (x *AutoLink) Reset()
- func (x *AutoLink) String() string
- type AutoLinkType
- func (AutoLinkType) Descriptor() protoreflect.EnumDescriptor
- func (x AutoLinkType) Enum() *AutoLinkType
- func (AutoLinkType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AutoLinkType) Number() protoreflect.EnumNumber
- func (x AutoLinkType) String() string
- func (AutoLinkType) Type() protoreflect.EnumType
- type BaseNode
- func (*BaseNode) Descriptor() ([]byte, []int)deprecated
- func (x *BaseNode) GetAttributes() []*Attribute
- func (x *BaseNode) GetBlankPreviousLines() bool
- func (x *BaseNode) GetChildren() []*Node
- func (*BaseNode) ProtoMessage()
- func (x *BaseNode) ProtoReflect() protoreflect.Message
- func (x *BaseNode) Reset()
- func (x *BaseNode) String() string
- type BlockContent
- type Blockquote
- type Blocks
- type CellAlignment
- func (CellAlignment) Descriptor() protoreflect.EnumDescriptor
- func (x CellAlignment) Enum() *CellAlignment
- func (CellAlignment) EnumDescriptor() ([]byte, []int)deprecated
- func (x CellAlignment) Number() protoreflect.EnumNumber
- func (x CellAlignment) String() string
- func (CellAlignment) Type() protoreflect.EnumType
- type CodeBlock
- type CodeSpan
- type Content
- type Contents
- type CustomNode
- func (*CustomNode) Descriptor() ([]byte, []int)deprecated
- func (x *CustomNode) GetBlankPreviousLines() bool
- func (x *CustomNode) GetData() *anypb.Any
- func (x *CustomNode) GetIsInline() bool
- func (*CustomNode) ProtoMessage()
- func (x *CustomNode) ProtoReflect() protoreflect.Message
- func (x *CustomNode) Reset()
- func (x *CustomNode) String() string
- type DecoderOption
- type Document
- type Emphasis
- type EncoderOption
- type FabricContentNode
- func (*FabricContentNode) Descriptor() ([]byte, []int)deprecated
- func (x *FabricContentNode) GetMetadata() *Metadata
- func (x *FabricContentNode) GetRoot() *BaseNode
- func (*FabricContentNode) ProtoMessage()
- func (x *FabricContentNode) ProtoReflect() protoreflect.Message
- func (x *FabricContentNode) Reset()
- func (x *FabricContentNode) String() string
- type FencedCodeBlock
- func (*FencedCodeBlock) Descriptor() ([]byte, []int)deprecated
- func (x *FencedCodeBlock) GetBase() *BaseNode
- func (x *FencedCodeBlock) GetInfo() *Text
- func (x *FencedCodeBlock) GetLines() [][]byte
- func (*FencedCodeBlock) ProtoMessage()
- func (x *FencedCodeBlock) ProtoReflect() protoreflect.Message
- func (x *FencedCodeBlock) Reset()
- func (x *FencedCodeBlock) String() string
- type HTMLBlock
- func (*HTMLBlock) Descriptor() ([]byte, []int)deprecated
- func (x *HTMLBlock) GetBase() *BaseNode
- func (x *HTMLBlock) GetClosureLine() []byte
- func (x *HTMLBlock) GetLines() [][]byte
- func (x *HTMLBlock) GetType() HTMLBlockType
- func (*HTMLBlock) ProtoMessage()
- func (x *HTMLBlock) ProtoReflect() protoreflect.Message
- func (x *HTMLBlock) Reset()
- func (x *HTMLBlock) String() string
- type HTMLBlockType
- func (HTMLBlockType) Descriptor() protoreflect.EnumDescriptor
- func (x HTMLBlockType) Enum() *HTMLBlockType
- func (HTMLBlockType) EnumDescriptor() ([]byte, []int)deprecated
- func (x HTMLBlockType) Number() protoreflect.EnumNumber
- func (x HTMLBlockType) String() string
- func (HTMLBlockType) Type() protoreflect.EnumType
- type Heading
- type InlineContent
- type Inlines
- type LinkOrImage
- func (*LinkOrImage) Descriptor() ([]byte, []int)deprecated
- func (x *LinkOrImage) GetBase() *BaseNode
- func (x *LinkOrImage) GetDestination() []byte
- func (x *LinkOrImage) GetIsImage() bool
- func (x *LinkOrImage) GetTitle() []byte
- func (*LinkOrImage) ProtoMessage()
- func (x *LinkOrImage) ProtoReflect() protoreflect.Message
- func (x *LinkOrImage) Reset()
- func (x *LinkOrImage) String() string
- type List
- func (*List) Descriptor() ([]byte, []int)deprecated
- func (x *List) GetBase() *BaseNode
- func (x *List) GetIsTight() bool
- func (x *List) GetMarker() uint32
- func (x *List) GetStart() uint32
- func (*List) ProtoMessage()
- func (x *List) ProtoReflect() protoreflect.Message
- func (x *List) Reset()
- func (x *List) String() string
- type ListItem
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetPlugin() string
- func (x *Metadata) GetProvider() string
- func (x *Metadata) GetVersion() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Node
- func (*Node) Descriptor() ([]byte, []int)deprecated
- func (x *Node) GetAutoLink() *AutoLink
- func (x *Node) GetBlockquote() *Blockquote
- func (x *Node) GetCodeBlock() *CodeBlock
- func (x *Node) GetCodeSpan() *CodeSpan
- func (x *Node) GetContentNode() *FabricContentNode
- func (x *Node) GetCustom() *CustomNode
- func (x *Node) GetDocument() *Document
- func (x *Node) GetEmphasis() *Emphasis
- func (x *Node) GetFencedCodeBlock() *FencedCodeBlock
- func (x *Node) GetHeading() *Heading
- func (x *Node) GetHtmlBlock() *HTMLBlock
- func (x *Node) GetKind() isNode_Kind
- func (x *Node) GetLinkOrImage() *LinkOrImage
- func (x *Node) GetList() *List
- func (x *Node) GetListItem() *ListItem
- func (x *Node) GetParagraph() *Paragraph
- func (x *Node) GetRawHtml() *RawHTML
- func (x *Node) GetStrikethrough() *Strikethrough
- func (x *Node) GetString_() *String
- func (x *Node) GetTable() *Table
- func (x *Node) GetTableCell() *TableCell
- func (x *Node) GetTableRow() *TableRow
- func (x *Node) GetTaskCheckbox() *TaskCheckbox
- func (x *Node) GetText() *Text
- func (x *Node) GetTextBlock() *TextBlock
- func (x *Node) GetThematicBreak() *ThematicBreak
- func (*Node) ProtoMessage()
- func (x *Node) ProtoReflect() protoreflect.Message
- func (x *Node) Reset()
- func (x *Node) String() string
- type NodeDecoder
- type NodeEncoder
- type Node_AutoLink
- type Node_Blockquote
- type Node_CodeBlock
- type Node_CodeSpan
- type Node_ContentNode
- type Node_Custom
- type Node_Document
- type Node_Emphasis
- type Node_FencedCodeBlock
- type Node_Heading
- type Node_HtmlBlock
- type Node_LinkOrImage
- type Node_List
- type Node_ListItem
- type Node_Paragraph
- type Node_RawHtml
- type Node_Strikethrough
- type Node_String_
- type Node_Table
- type Node_TableCell
- type Node_TableRow
- type Node_TaskCheckbox
- type Node_Text
- type Node_TextBlock
- type Node_ThematicBreak
- type Paragraph
- type RawHTML
- type Strikethrough
- type String
- func (*String) Descriptor() ([]byte, []int)deprecated
- func (x *String) GetBase() *BaseNode
- func (x *String) GetCode() bool
- func (x *String) GetRaw() bool
- func (x *String) GetValue() []byte
- func (*String) ProtoMessage()
- func (x *String) ProtoReflect() protoreflect.Message
- func (x *String) Reset()
- func (x *String) String() string
- type Table
- type TableCell
- type TableRow
- func (*TableRow) Descriptor() ([]byte, []int)deprecated
- func (x *TableRow) GetAlignments() []CellAlignment
- func (x *TableRow) GetBase() *BaseNode
- func (x *TableRow) GetIsHeader() bool
- func (*TableRow) ProtoMessage()
- func (x *TableRow) ProtoReflect() protoreflect.Message
- func (x *TableRow) Reset()
- func (x *TableRow) String() string
- type TaskCheckbox
- func (*TaskCheckbox) Descriptor() ([]byte, []int)deprecated
- func (x *TaskCheckbox) GetBase() *BaseNode
- func (x *TaskCheckbox) GetIsChecked() bool
- func (*TaskCheckbox) ProtoMessage()
- func (x *TaskCheckbox) ProtoReflect() protoreflect.Message
- func (x *TaskCheckbox) Reset()
- func (x *TaskCheckbox) String() string
- type Text
- func (*Text) Descriptor() ([]byte, []int)deprecated
- func (x *Text) GetBase() *BaseNode
- func (x *Text) GetHardLineBreak() bool
- func (x *Text) GetRaw() bool
- func (x *Text) GetSegment() []byte
- func (x *Text) GetSoftLineBreak() bool
- func (*Text) ProtoMessage()
- func (x *Text) ProtoReflect() protoreflect.Message
- func (x *Text) Reset()
- func (x *Text) String() string
- type TextBlock
- type ThematicBreak
Constants ¶
This section is empty.
Variables ¶
var ( HTMLBlockType_name = map[int32]string{ 0: "HTML_BLOCK_TYPE_UNSPECIFIED", 1: "HTML_BLOCK_TYPE_1", 2: "HTML_BLOCK_TYPE_2", 3: "HTML_BLOCK_TYPE_3", 4: "HTML_BLOCK_TYPE_4", 5: "HTML_BLOCK_TYPE_5", 6: "HTML_BLOCK_TYPE_6", 7: "HTML_BLOCK_TYPE_7", } HTMLBlockType_value = map[string]int32{ "HTML_BLOCK_TYPE_UNSPECIFIED": 0, "HTML_BLOCK_TYPE_1": 1, "HTML_BLOCK_TYPE_2": 2, "HTML_BLOCK_TYPE_3": 3, "HTML_BLOCK_TYPE_4": 4, "HTML_BLOCK_TYPE_5": 5, "HTML_BLOCK_TYPE_6": 6, "HTML_BLOCK_TYPE_7": 7, } )
Enum value maps for HTMLBlockType.
var ( AutoLinkType_name = map[int32]string{ 0: "AUTO_LINK_TYPE_UNSPECIFIED", 1: "AUTO_LINK_TYPE_EMAIL", 2: "AUTO_LINK_TYPE_URL", } AutoLinkType_value = map[string]int32{ "AUTO_LINK_TYPE_UNSPECIFIED": 0, "AUTO_LINK_TYPE_EMAIL": 1, "AUTO_LINK_TYPE_URL": 2, } )
Enum value maps for AutoLinkType.
var ( CellAlignment_name = map[int32]string{ 0: "CELL_ALIGNMENT_UNSPECIFIED", 1: "CELL_ALIGNMENT_LEFT", 2: "CELL_ALIGNMENT_RIGHT", 3: "CELL_ALIGNMENT_CENTER", 4: "CELL_ALIGNMENT_NONE", } CellAlignment_value = map[string]int32{ "CELL_ALIGNMENT_UNSPECIFIED": 0, "CELL_ALIGNMENT_LEFT": 1, "CELL_ALIGNMENT_RIGHT": 2, "CELL_ALIGNMENT_CENTER": 3, "CELL_ALIGNMENT_NONE": 4, } )
Enum value maps for CellAlignment.
var ( ErrUnsupportedNodeType = errors.New("unsupported node type") ErrUnsupportedAttributeType = errors.New("unsupported attribute type") ErrUnsupportedAlignment = errors.New("unsupported alignment") )
var ErrSkipAttribute = errors.New("skip")
ErrSkipAttribute should be returned from AttributeEncoder if the attribute needs to be be skipped.
var File_ast_v1_ast_proto protoreflect.FileDescriptor
Functions ¶
func DecodeMetadata ¶
func DecodeMetadata(meta *Metadata) *nodes.ContentMeta
Types ¶
type Attribute ¶
type Attribute struct {
Name []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
//
// *Attribute_Bytes
// *Attribute_Str
Value isAttribute_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func DefaultAttributeEncoder ¶
func (*Attribute) Descriptor
deprecated
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (*Attribute) ProtoReflect ¶
func (x *Attribute) ProtoReflect() protoreflect.Message
type Attribute_Bytes ¶
type Attribute_Bytes struct {
Bytes []byte `protobuf:"bytes,2,opt,name=bytes,proto3,oneof"`
}
type Attribute_Str ¶
type Attribute_Str struct {
Str string `protobuf:"bytes,3,opt,name=str,proto3,oneof"`
}
type AutoLink ¶
type AutoLink struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Type AutoLinkType `protobuf:"varint,2,opt,name=type,proto3,enum=ast.v1.AutoLinkType" json:"type,omitempty"`
Protocol []byte `protobuf:"bytes,3,opt,name=protocol,proto3" json:"protocol,omitempty"`
Value []byte `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*AutoLink) Descriptor
deprecated
func (*AutoLink) GetProtocol ¶
func (*AutoLink) GetType ¶
func (x *AutoLink) GetType() AutoLinkType
func (*AutoLink) ProtoMessage ¶
func (*AutoLink) ProtoMessage()
func (*AutoLink) ProtoReflect ¶
func (x *AutoLink) ProtoReflect() protoreflect.Message
type AutoLinkType ¶
type AutoLinkType int32
const ( AutoLinkType_AUTO_LINK_TYPE_UNSPECIFIED AutoLinkType = 0 AutoLinkType_AUTO_LINK_TYPE_EMAIL AutoLinkType = 1 AutoLinkType_AUTO_LINK_TYPE_URL AutoLinkType = 2 )
func (AutoLinkType) Descriptor ¶
func (AutoLinkType) Descriptor() protoreflect.EnumDescriptor
func (AutoLinkType) Enum ¶
func (x AutoLinkType) Enum() *AutoLinkType
func (AutoLinkType) EnumDescriptor
deprecated
func (AutoLinkType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AutoLinkType.Descriptor instead.
func (AutoLinkType) Number ¶
func (x AutoLinkType) Number() protoreflect.EnumNumber
func (AutoLinkType) String ¶
func (x AutoLinkType) String() string
func (AutoLinkType) Type ¶
func (AutoLinkType) Type() protoreflect.EnumType
type BaseNode ¶
type BaseNode struct {
Children []*Node `protobuf:"bytes,1,rep,name=children,proto3" json:"children,omitempty"`
Attributes []*Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes,omitempty"`
// value meaningful only for blocks
BlankPreviousLines bool `protobuf:"varint,3,opt,name=blank_previous_lines,json=blankPreviousLines,proto3" json:"blank_previous_lines,omitempty"`
// contains filtered or unexported fields
}
func (*BaseNode) Descriptor
deprecated
func (*BaseNode) GetAttributes ¶
func (*BaseNode) GetBlankPreviousLines ¶
func (*BaseNode) GetChildren ¶
func (*BaseNode) ProtoMessage ¶
func (*BaseNode) ProtoMessage()
func (*BaseNode) ProtoReflect ¶
func (x *BaseNode) ProtoReflect() protoreflect.Message
type BlockContent ¶
type BlockContent interface {
Content
// contains filtered or unexported methods
}
BlockContent represents any block node or something convertible to block nodes.
type Blockquote ¶
type Blockquote struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*Blockquote) Descriptor
deprecated
func (*Blockquote) Descriptor() ([]byte, []int)
Deprecated: Use Blockquote.ProtoReflect.Descriptor instead.
func (*Blockquote) GetBase ¶
func (x *Blockquote) GetBase() *BaseNode
func (*Blockquote) ProtoMessage ¶
func (*Blockquote) ProtoMessage()
func (*Blockquote) ProtoReflect ¶
func (x *Blockquote) ProtoReflect() protoreflect.Message
func (*Blockquote) Reset ¶
func (x *Blockquote) Reset()
func (*Blockquote) String ¶
func (x *Blockquote) String() string
type CellAlignment ¶
type CellAlignment int32
const ( CellAlignment_CELL_ALIGNMENT_UNSPECIFIED CellAlignment = 0 CellAlignment_CELL_ALIGNMENT_LEFT CellAlignment = 1 CellAlignment_CELL_ALIGNMENT_RIGHT CellAlignment = 2 CellAlignment_CELL_ALIGNMENT_CENTER CellAlignment = 3 CellAlignment_CELL_ALIGNMENT_NONE CellAlignment = 4 )
func (CellAlignment) Descriptor ¶
func (CellAlignment) Descriptor() protoreflect.EnumDescriptor
func (CellAlignment) Enum ¶
func (x CellAlignment) Enum() *CellAlignment
func (CellAlignment) EnumDescriptor
deprecated
func (CellAlignment) EnumDescriptor() ([]byte, []int)
Deprecated: Use CellAlignment.Descriptor instead.
func (CellAlignment) Number ¶
func (x CellAlignment) Number() protoreflect.EnumNumber
func (CellAlignment) String ¶
func (x CellAlignment) String() string
func (CellAlignment) Type ¶
func (CellAlignment) Type() protoreflect.EnumType
type CodeBlock ¶
type CodeBlock struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Lines [][]byte `protobuf:"bytes,2,rep,name=lines,proto3" json:"lines,omitempty"`
// contains filtered or unexported fields
}
func (*CodeBlock) Descriptor
deprecated
func (*CodeBlock) ProtoMessage ¶
func (*CodeBlock) ProtoMessage()
func (*CodeBlock) ProtoReflect ¶
func (x *CodeBlock) ProtoReflect() protoreflect.Message
type CodeSpan ¶
type CodeSpan struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*CodeSpan) Descriptor
deprecated
func (*CodeSpan) ProtoMessage ¶
func (*CodeSpan) ProtoMessage()
func (*CodeSpan) ProtoReflect ¶
func (x *CodeSpan) ProtoReflect() protoreflect.Message
type CustomNode ¶
type CustomNode struct {
// Indicates that this block is an inline element
IsInline bool `protobuf:"varint,1,opt,name=is_inline,json=isInline,proto3" json:"is_inline,omitempty"`
Data *anypb.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
BlankPreviousLines bool `protobuf:"varint,3,opt,name=blank_previous_lines,json=blankPreviousLines,proto3" json:"blank_previous_lines,omitempty"`
// contains filtered or unexported fields
}
func (*CustomNode) Descriptor
deprecated
func (*CustomNode) Descriptor() ([]byte, []int)
Deprecated: Use CustomNode.ProtoReflect.Descriptor instead.
func (*CustomNode) GetBlankPreviousLines ¶
func (x *CustomNode) GetBlankPreviousLines() bool
func (*CustomNode) GetData ¶
func (x *CustomNode) GetData() *anypb.Any
func (*CustomNode) GetIsInline ¶
func (x *CustomNode) GetIsInline() bool
func (*CustomNode) ProtoMessage ¶
func (*CustomNode) ProtoMessage()
func (*CustomNode) ProtoReflect ¶
func (x *CustomNode) ProtoReflect() protoreflect.Message
func (*CustomNode) Reset ¶
func (x *CustomNode) Reset()
func (*CustomNode) String ¶
func (x *CustomNode) String() string
type DecoderOption ¶
type DecoderOption interface {
// contains filtered or unexported methods
}
type Document ¶
type Document struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*Document) Descriptor
deprecated
func (*Document) ProtoMessage ¶
func (*Document) ProtoMessage()
func (*Document) ProtoReflect ¶
func (x *Document) ProtoReflect() protoreflect.Message
type Emphasis ¶
type Emphasis struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Level int64 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*Emphasis) Descriptor
deprecated
func (*Emphasis) ProtoMessage ¶
func (*Emphasis) ProtoMessage()
func (*Emphasis) ProtoReflect ¶
func (x *Emphasis) ProtoReflect() protoreflect.Message
type EncoderOption ¶
type EncoderOption interface {
// contains filtered or unexported methods
}
type FabricContentNode ¶
type FabricContentNode struct {
Metadata *Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata,omitempty"`
Root *BaseNode `protobuf:"bytes,2,opt,name=root,proto3" json:"root,omitempty"` // direct content, no document node
// contains filtered or unexported fields
}
Root of the plugin-rendered data
func NewContent ¶
func NewContent(nodes ...BlockContent) *FabricContentNode
func (*FabricContentNode) Descriptor
deprecated
func (*FabricContentNode) Descriptor() ([]byte, []int)
Deprecated: Use FabricContentNode.ProtoReflect.Descriptor instead.
func (*FabricContentNode) GetMetadata ¶
func (x *FabricContentNode) GetMetadata() *Metadata
func (*FabricContentNode) GetRoot ¶
func (x *FabricContentNode) GetRoot() *BaseNode
func (*FabricContentNode) ProtoMessage ¶
func (*FabricContentNode) ProtoMessage()
func (*FabricContentNode) ProtoReflect ¶
func (x *FabricContentNode) ProtoReflect() protoreflect.Message
func (*FabricContentNode) Reset ¶
func (x *FabricContentNode) Reset()
func (*FabricContentNode) String ¶
func (x *FabricContentNode) String() string
type FencedCodeBlock ¶
type FencedCodeBlock struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Info *Text `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"`
Lines [][]byte `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
// contains filtered or unexported fields
}
func (*FencedCodeBlock) Descriptor
deprecated
func (*FencedCodeBlock) Descriptor() ([]byte, []int)
Deprecated: Use FencedCodeBlock.ProtoReflect.Descriptor instead.
func (*FencedCodeBlock) GetBase ¶
func (x *FencedCodeBlock) GetBase() *BaseNode
func (*FencedCodeBlock) GetInfo ¶
func (x *FencedCodeBlock) GetInfo() *Text
func (*FencedCodeBlock) GetLines ¶
func (x *FencedCodeBlock) GetLines() [][]byte
func (*FencedCodeBlock) ProtoMessage ¶
func (*FencedCodeBlock) ProtoMessage()
func (*FencedCodeBlock) ProtoReflect ¶
func (x *FencedCodeBlock) ProtoReflect() protoreflect.Message
func (*FencedCodeBlock) Reset ¶
func (x *FencedCodeBlock) Reset()
func (*FencedCodeBlock) String ¶
func (x *FencedCodeBlock) String() string
type HTMLBlock ¶
type HTMLBlock struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Type HTMLBlockType `protobuf:"varint,2,opt,name=type,proto3,enum=ast.v1.HTMLBlockType" json:"type,omitempty"`
Lines [][]byte `protobuf:"bytes,3,rep,name=lines,proto3" json:"lines,omitempty"`
ClosureLine []byte `protobuf:"bytes,4,opt,name=closure_line,json=closureLine,proto3" json:"closure_line,omitempty"`
// contains filtered or unexported fields
}
func (*HTMLBlock) Descriptor
deprecated
func (*HTMLBlock) GetClosureLine ¶
func (*HTMLBlock) GetType ¶
func (x *HTMLBlock) GetType() HTMLBlockType
func (*HTMLBlock) ProtoMessage ¶
func (*HTMLBlock) ProtoMessage()
func (*HTMLBlock) ProtoReflect ¶
func (x *HTMLBlock) ProtoReflect() protoreflect.Message
type HTMLBlockType ¶
type HTMLBlockType int32
const ( HTMLBlockType_HTML_BLOCK_TYPE_UNSPECIFIED HTMLBlockType = 0 HTMLBlockType_HTML_BLOCK_TYPE_1 HTMLBlockType = 1 HTMLBlockType_HTML_BLOCK_TYPE_2 HTMLBlockType = 2 HTMLBlockType_HTML_BLOCK_TYPE_3 HTMLBlockType = 3 HTMLBlockType_HTML_BLOCK_TYPE_4 HTMLBlockType = 4 HTMLBlockType_HTML_BLOCK_TYPE_5 HTMLBlockType = 5 HTMLBlockType_HTML_BLOCK_TYPE_6 HTMLBlockType = 6 HTMLBlockType_HTML_BLOCK_TYPE_7 HTMLBlockType = 7 )
func (HTMLBlockType) Descriptor ¶
func (HTMLBlockType) Descriptor() protoreflect.EnumDescriptor
func (HTMLBlockType) Enum ¶
func (x HTMLBlockType) Enum() *HTMLBlockType
func (HTMLBlockType) EnumDescriptor
deprecated
func (HTMLBlockType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HTMLBlockType.Descriptor instead.
func (HTMLBlockType) Number ¶
func (x HTMLBlockType) Number() protoreflect.EnumNumber
func (HTMLBlockType) String ¶
func (x HTMLBlockType) String() string
func (HTMLBlockType) Type ¶
func (HTMLBlockType) Type() protoreflect.EnumType
type Heading ¶
type Heading struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"`
// contains filtered or unexported fields
}
func (*Heading) Descriptor
deprecated
func (*Heading) ProtoMessage ¶
func (*Heading) ProtoMessage()
func (*Heading) ProtoReflect ¶
func (x *Heading) ProtoReflect() protoreflect.Message
type InlineContent ¶
type InlineContent interface {
Content
// contains filtered or unexported methods
}
InlineContent represents any inline node or something convertible to inline nodes.
type Inlines ¶
type Inlines []InlineContent
Inlines is a list of InlineContent.
func (Inlines) ExtendNodes ¶
type LinkOrImage ¶
type LinkOrImage struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Destination []byte `protobuf:"bytes,2,opt,name=destination,proto3" json:"destination,omitempty"`
Title []byte `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
IsImage bool `protobuf:"varint,4,opt,name=is_image,json=isImage,proto3" json:"is_image,omitempty"`
// contains filtered or unexported fields
}
func (*LinkOrImage) Descriptor
deprecated
func (*LinkOrImage) Descriptor() ([]byte, []int)
Deprecated: Use LinkOrImage.ProtoReflect.Descriptor instead.
func (*LinkOrImage) GetBase ¶
func (x *LinkOrImage) GetBase() *BaseNode
func (*LinkOrImage) GetDestination ¶
func (x *LinkOrImage) GetDestination() []byte
func (*LinkOrImage) GetIsImage ¶
func (x *LinkOrImage) GetIsImage() bool
func (*LinkOrImage) GetTitle ¶
func (x *LinkOrImage) GetTitle() []byte
func (*LinkOrImage) ProtoMessage ¶
func (*LinkOrImage) ProtoMessage()
func (*LinkOrImage) ProtoReflect ¶
func (x *LinkOrImage) ProtoReflect() protoreflect.Message
func (*LinkOrImage) Reset ¶
func (x *LinkOrImage) Reset()
func (*LinkOrImage) String ¶
func (x *LinkOrImage) String() string
type List ¶
type List struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Marker uint32 `protobuf:"varint,2,opt,name=marker,proto3" json:"marker,omitempty"`
IsTight bool `protobuf:"varint,3,opt,name=is_tight,json=isTight,proto3" json:"is_tight,omitempty"`
Start uint32 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
// contains filtered or unexported fields
}
func (*List) Descriptor
deprecated
func (*List) GetIsTight ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
func (*List) ProtoReflect ¶
func (x *List) ProtoReflect() protoreflect.Message
type ListItem ¶
type ListItem struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Offset int64 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"`
// contains filtered or unexported fields
}
func (*ListItem) Descriptor
deprecated
func (*ListItem) ProtoMessage ¶
func (*ListItem) ProtoMessage()
func (*ListItem) ProtoReflect ¶
func (x *ListItem) ProtoReflect() protoreflect.Message
type Metadata ¶
type Metadata struct {
// ie "blackstork/builtin"
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
// ie "title"
Plugin string `protobuf:"bytes,2,opt,name=plugin,proto3" json:"plugin,omitempty"`
Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
func EncodeMetadata ¶
func EncodeMetadata(meta *nodes.ContentMeta) *Metadata
func (*Metadata) Descriptor
deprecated
func (*Metadata) GetProvider ¶
func (*Metadata) GetVersion ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶
func (x *Metadata) ProtoReflect() protoreflect.Message
type Node ¶
type Node struct {
// Types that are valid to be assigned to Kind:
//
// *Node_Document
// *Node_TextBlock
// *Node_Paragraph
// *Node_Heading
// *Node_ThematicBreak
// *Node_CodeBlock
// *Node_FencedCodeBlock
// *Node_Blockquote
// *Node_List
// *Node_ListItem
// *Node_HtmlBlock
// *Node_Text
// *Node_String_
// *Node_CodeSpan
// *Node_Emphasis
// *Node_LinkOrImage
// *Node_AutoLink
// *Node_RawHtml
// *Node_Table
// *Node_TableRow
// *Node_TableCell
// *Node_TaskCheckbox
// *Node_Strikethrough
// *Node_ContentNode
// *Node_Custom
Kind isNode_Kind `protobuf_oneof:"kind"`
// contains filtered or unexported fields
}
func (*Node) Descriptor
deprecated
func (*Node) GetAutoLink ¶
func (*Node) GetBlockquote ¶
func (x *Node) GetBlockquote() *Blockquote
func (*Node) GetCodeBlock ¶
func (*Node) GetCodeSpan ¶
func (*Node) GetContentNode ¶
func (x *Node) GetContentNode() *FabricContentNode
func (*Node) GetCustom ¶
func (x *Node) GetCustom() *CustomNode
func (*Node) GetDocument ¶
func (*Node) GetEmphasis ¶
func (*Node) GetFencedCodeBlock ¶
func (x *Node) GetFencedCodeBlock() *FencedCodeBlock
func (*Node) GetHeading ¶
func (*Node) GetHtmlBlock ¶
func (*Node) GetLinkOrImage ¶
func (x *Node) GetLinkOrImage() *LinkOrImage
func (*Node) GetListItem ¶
func (*Node) GetParagraph ¶
func (*Node) GetRawHtml ¶
func (*Node) GetStrikethrough ¶
func (x *Node) GetStrikethrough() *Strikethrough
func (*Node) GetString_ ¶
func (*Node) GetTableCell ¶
func (*Node) GetTableRow ¶
func (*Node) GetTaskCheckbox ¶
func (x *Node) GetTaskCheckbox() *TaskCheckbox
func (*Node) GetTextBlock ¶
func (*Node) GetThematicBreak ¶
func (x *Node) GetThematicBreak() *ThematicBreak
func (*Node) ProtoMessage ¶
func (*Node) ProtoMessage()
func (*Node) ProtoReflect ¶
func (x *Node) ProtoReflect() protoreflect.Message
type NodeEncoder ¶
type Node_AutoLink ¶
type Node_AutoLink struct {
AutoLink *AutoLink `protobuf:"bytes,20,opt,name=auto_link,json=autoLink,proto3,oneof"`
}
func (*Node_AutoLink) ExtendNodes ¶
func (n *Node_AutoLink) ExtendNodes(nodes []*Node) []*Node
type Node_Blockquote ¶
type Node_Blockquote struct {
Blockquote *Blockquote `protobuf:"bytes,11,opt,name=blockquote,proto3,oneof"`
}
func (*Node_Blockquote) ExtendNodes ¶
func (n *Node_Blockquote) ExtendNodes(nodes []*Node) []*Node
type Node_CodeBlock ¶
type Node_CodeBlock struct {
CodeBlock *CodeBlock `protobuf:"bytes,9,opt,name=code_block,json=codeBlock,proto3,oneof"`
}
func (*Node_CodeBlock) ExtendNodes ¶
func (n *Node_CodeBlock) ExtendNodes(nodes []*Node) []*Node
type Node_CodeSpan ¶
type Node_CodeSpan struct {
CodeSpan *CodeSpan `protobuf:"bytes,17,opt,name=code_span,json=codeSpan,proto3,oneof"`
}
func (*Node_CodeSpan) ExtendNodes ¶
func (n *Node_CodeSpan) ExtendNodes(nodes []*Node) []*Node
type Node_ContentNode ¶
type Node_ContentNode struct {
// Root of the plugin-rendered data
ContentNode *FabricContentNode `protobuf:"bytes,254,opt,name=content_node,json=contentNode,proto3,oneof"`
}
type Node_Custom ¶
type Node_Custom struct {
// Custom node types can be serialized using this
Custom *CustomNode `protobuf:"bytes,255,opt,name=custom,proto3,oneof"`
}
type Node_Document ¶
type Node_Document struct {
// Blocks
Document *Document `protobuf:"bytes,1,opt,name=document,proto3,oneof"`
}
type Node_Emphasis ¶
type Node_Emphasis struct {
Emphasis *Emphasis `protobuf:"bytes,18,opt,name=emphasis,proto3,oneof"`
}
func (*Node_Emphasis) ExtendNodes ¶
func (n *Node_Emphasis) ExtendNodes(nodes []*Node) []*Node
type Node_FencedCodeBlock ¶
type Node_FencedCodeBlock struct {
FencedCodeBlock *FencedCodeBlock `protobuf:"bytes,10,opt,name=fenced_code_block,json=fencedCodeBlock,proto3,oneof"`
}
func (*Node_FencedCodeBlock) ExtendNodes ¶
func (n *Node_FencedCodeBlock) ExtendNodes(nodes []*Node) []*Node
func (*Node_FencedCodeBlock) SetLanguage ¶
func (n *Node_FencedCodeBlock) SetLanguage(language string) *Node_FencedCodeBlock
type Node_Heading ¶
type Node_Heading struct {
Heading *Heading `protobuf:"bytes,7,opt,name=heading,proto3,oneof"`
}
func (*Node_Heading) ExtendNodes ¶
func (n *Node_Heading) ExtendNodes(nodes []*Node) []*Node
type Node_HtmlBlock ¶
type Node_HtmlBlock struct {
HtmlBlock *HTMLBlock `protobuf:"bytes,14,opt,name=html_block,json=htmlBlock,proto3,oneof"`
}
func (*Node_HtmlBlock) ExtendNodes ¶
func (n *Node_HtmlBlock) ExtendNodes(nodes []*Node) []*Node
type Node_LinkOrImage ¶
type Node_LinkOrImage struct {
LinkOrImage *LinkOrImage `protobuf:"bytes,19,opt,name=link_or_image,json=linkOrImage,proto3,oneof"`
}
func (*Node_LinkOrImage) ExtendNodes ¶
func (n *Node_LinkOrImage) ExtendNodes(nodes []*Node) []*Node
func (*Node_LinkOrImage) SetDestination ¶
func (n *Node_LinkOrImage) SetDestination(url string) *Node_LinkOrImage
func (*Node_LinkOrImage) SetTitle ¶
func (n *Node_LinkOrImage) SetTitle(title string) *Node_LinkOrImage
type Node_List ¶
type Node_List struct {
List *List `protobuf:"bytes,12,opt,name=list,proto3,oneof"`
}
func (*Node_List) AppendItem ¶
func (n *Node_List) AppendItem(content ...BlockContent) *Node_List
AppendItem appends a list item to the list.
func (*Node_List) AppendTaskItem ¶
func (n *Node_List) AppendTaskItem(checked bool, content ...BlockContent) *Node_List
AppendTaskItem appends a task list item to the list.
func (*Node_List) ExtendNodes ¶
type Node_ListItem ¶
type Node_ListItem struct {
ListItem *ListItem `protobuf:"bytes,13,opt,name=list_item,json=listItem,proto3,oneof"`
}
type Node_Paragraph ¶
type Node_Paragraph struct {
Paragraph *Paragraph `protobuf:"bytes,6,opt,name=paragraph,proto3,oneof"`
}
func (*Node_Paragraph) ExtendNodes ¶
func (n *Node_Paragraph) ExtendNodes(nodes []*Node) []*Node
type Node_RawHtml ¶
type Node_RawHtml struct {
RawHtml *RawHTML `protobuf:"bytes,21,opt,name=raw_html,json=rawHtml,proto3,oneof"`
}
func (*Node_RawHtml) ExtendNodes ¶
func (n *Node_RawHtml) ExtendNodes(nodes []*Node) []*Node
type Node_Strikethrough ¶
type Node_Strikethrough struct {
Strikethrough *Strikethrough `protobuf:"bytes,26,opt,name=strikethrough,proto3,oneof"`
}
func (*Node_Strikethrough) ExtendNodes ¶
func (n *Node_Strikethrough) ExtendNodes(nodes []*Node) []*Node
type Node_String_ ¶
type Node_String_ struct {
String_ *String `protobuf:"bytes,16,opt,name=string,proto3,oneof"`
}
func (*Node_String_) ExtendNodes ¶
func (n *Node_String_) ExtendNodes(nodes []*Node) []*Node
type Node_Table ¶
type Node_Table struct {
// Github Flavored Markdown
// blocks
Table *Table `protobuf:"bytes,22,opt,name=table,proto3,oneof"`
}
func (*Node_Table) AppendRow ¶
func (n *Node_Table) AppendRow(cells ...[]InlineContent) *Node_Table
func (*Node_Table) ExtendNodes ¶
func (n *Node_Table) ExtendNodes(nodes []*Node) []*Node
func (*Node_Table) SetColumnAlignments ¶
func (n *Node_Table) SetColumnAlignments(alignments ...CellAlignment) *Node_Table
type Node_TableCell ¶
type Node_TableCell struct {
TableCell *TableCell `protobuf:"bytes,24,opt,name=table_cell,json=tableCell,proto3,oneof"`
}
type Node_TableRow ¶
type Node_TableRow struct {
TableRow *TableRow `protobuf:"bytes,23,opt,name=table_row,json=tableRow,proto3,oneof"`
}
type Node_TaskCheckbox ¶
type Node_TaskCheckbox struct {
// inline
TaskCheckbox *TaskCheckbox `protobuf:"bytes,25,opt,name=task_checkbox,json=taskCheckbox,proto3,oneof"`
}
type Node_Text ¶
type Node_Text struct {
// inlines
Text *Text `protobuf:"bytes,15,opt,name=text,proto3,oneof"`
}
func (*Node_Text) ExtendNodes ¶
type Node_TextBlock ¶
type Node_TextBlock struct {
TextBlock *TextBlock `protobuf:"bytes,5,opt,name=text_block,json=textBlock,proto3,oneof"`
}
type Node_ThematicBreak ¶
type Node_ThematicBreak struct {
ThematicBreak *ThematicBreak `protobuf:"bytes,8,opt,name=thematic_break,json=thematicBreak,proto3,oneof"`
}
func (*Node_ThematicBreak) ExtendNodes ¶
func (n *Node_ThematicBreak) ExtendNodes(nodes []*Node) []*Node
type Paragraph ¶
type Paragraph struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*Paragraph) Descriptor
deprecated
func (*Paragraph) ProtoMessage ¶
func (*Paragraph) ProtoMessage()
func (*Paragraph) ProtoReflect ¶
func (x *Paragraph) ProtoReflect() protoreflect.Message
type RawHTML ¶
type RawHTML struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Segments [][]byte `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"`
// contains filtered or unexported fields
}
func (*RawHTML) Descriptor
deprecated
func (*RawHTML) GetSegments ¶
func (*RawHTML) ProtoMessage ¶
func (*RawHTML) ProtoMessage()
func (*RawHTML) ProtoReflect ¶
func (x *RawHTML) ProtoReflect() protoreflect.Message
type Strikethrough ¶
type Strikethrough struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*Strikethrough) Descriptor
deprecated
func (*Strikethrough) Descriptor() ([]byte, []int)
Deprecated: Use Strikethrough.ProtoReflect.Descriptor instead.
func (*Strikethrough) GetBase ¶
func (x *Strikethrough) GetBase() *BaseNode
func (*Strikethrough) ProtoMessage ¶
func (*Strikethrough) ProtoMessage()
func (*Strikethrough) ProtoReflect ¶
func (x *Strikethrough) ProtoReflect() protoreflect.Message
func (*Strikethrough) Reset ¶
func (x *Strikethrough) Reset()
func (*Strikethrough) String ¶
func (x *Strikethrough) String() string
type String ¶
type String struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Raw bool `protobuf:"varint,3,opt,name=raw,proto3" json:"raw,omitempty"`
Code bool `protobuf:"varint,4,opt,name=code,proto3" json:"code,omitempty"`
// contains filtered or unexported fields
}
func (*String) Descriptor
deprecated
func (*String) ProtoMessage ¶
func (*String) ProtoMessage()
func (*String) ProtoReflect ¶
func (x *String) ProtoReflect() protoreflect.Message
type Table ¶
type Table struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Alignments []CellAlignment `protobuf:"varint,2,rep,packed,name=alignments,proto3,enum=ast.v1.CellAlignment" json:"alignments,omitempty"`
// contains filtered or unexported fields
}
func (*Table) Descriptor
deprecated
func (*Table) GetAlignments ¶
func (x *Table) GetAlignments() []CellAlignment
func (*Table) ProtoMessage ¶
func (*Table) ProtoMessage()
func (*Table) ProtoReflect ¶
func (x *Table) ProtoReflect() protoreflect.Message
type TableCell ¶
type TableCell struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Alignment CellAlignment `protobuf:"varint,2,opt,name=alignment,proto3,enum=ast.v1.CellAlignment" json:"alignment,omitempty"`
// contains filtered or unexported fields
}
func (*TableCell) Descriptor
deprecated
func (*TableCell) GetAlignment ¶
func (x *TableCell) GetAlignment() CellAlignment
func (*TableCell) ProtoMessage ¶
func (*TableCell) ProtoMessage()
func (*TableCell) ProtoReflect ¶
func (x *TableCell) ProtoReflect() protoreflect.Message
type TableRow ¶
type TableRow struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Alignments []CellAlignment `protobuf:"varint,2,rep,packed,name=alignments,proto3,enum=ast.v1.CellAlignment" json:"alignments,omitempty"`
IsHeader bool `protobuf:"varint,4,opt,name=is_header,json=isHeader,proto3" json:"is_header,omitempty"`
// contains filtered or unexported fields
}
func (*TableRow) Descriptor
deprecated
func (*TableRow) GetAlignments ¶
func (x *TableRow) GetAlignments() []CellAlignment
func (*TableRow) GetIsHeader ¶
func (*TableRow) ProtoMessage ¶
func (*TableRow) ProtoMessage()
func (*TableRow) ProtoReflect ¶
func (x *TableRow) ProtoReflect() protoreflect.Message
type TaskCheckbox ¶
type TaskCheckbox struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
IsChecked bool `protobuf:"varint,2,opt,name=is_checked,json=isChecked,proto3" json:"is_checked,omitempty"`
// contains filtered or unexported fields
}
func (*TaskCheckbox) Descriptor
deprecated
func (*TaskCheckbox) Descriptor() ([]byte, []int)
Deprecated: Use TaskCheckbox.ProtoReflect.Descriptor instead.
func (*TaskCheckbox) GetBase ¶
func (x *TaskCheckbox) GetBase() *BaseNode
func (*TaskCheckbox) GetIsChecked ¶
func (x *TaskCheckbox) GetIsChecked() bool
func (*TaskCheckbox) ProtoMessage ¶
func (*TaskCheckbox) ProtoMessage()
func (*TaskCheckbox) ProtoReflect ¶
func (x *TaskCheckbox) ProtoReflect() protoreflect.Message
func (*TaskCheckbox) Reset ¶
func (x *TaskCheckbox) Reset()
func (*TaskCheckbox) String ¶
func (x *TaskCheckbox) String() string
type Text ¶
type Text struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
Segment []byte `protobuf:"bytes,2,opt,name=segment,proto3" json:"segment,omitempty"`
SoftLineBreak bool `protobuf:"varint,3,opt,name=soft_line_break,json=softLineBreak,proto3" json:"soft_line_break,omitempty"`
HardLineBreak bool `protobuf:"varint,4,opt,name=hard_line_break,json=hardLineBreak,proto3" json:"hard_line_break,omitempty"`
Raw bool `protobuf:"varint,5,opt,name=raw,proto3" json:"raw,omitempty"`
// contains filtered or unexported fields
}
func (*Text) Descriptor
deprecated
func (*Text) GetHardLineBreak ¶
func (*Text) GetSegment ¶
func (*Text) GetSoftLineBreak ¶
func (*Text) ProtoMessage ¶
func (*Text) ProtoMessage()
func (*Text) ProtoReflect ¶
func (x *Text) ProtoReflect() protoreflect.Message
type TextBlock ¶
type TextBlock struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*TextBlock) Descriptor
deprecated
func (*TextBlock) ProtoMessage ¶
func (*TextBlock) ProtoMessage()
func (*TextBlock) ProtoReflect ¶
func (x *TextBlock) ProtoReflect() protoreflect.Message
type ThematicBreak ¶
type ThematicBreak struct {
Base *BaseNode `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
// contains filtered or unexported fields
}
func (*ThematicBreak) Descriptor
deprecated
func (*ThematicBreak) Descriptor() ([]byte, []int)
Deprecated: Use ThematicBreak.ProtoReflect.Descriptor instead.
func (*ThematicBreak) GetBase ¶
func (x *ThematicBreak) GetBase() *BaseNode
func (*ThematicBreak) ProtoMessage ¶
func (*ThematicBreak) ProtoMessage()
func (*ThematicBreak) ProtoReflect ¶
func (x *ThematicBreak) ProtoReflect() protoreflect.Message
func (*ThematicBreak) Reset ¶
func (x *ThematicBreak) Reset()
func (*ThematicBreak) String ¶
func (x *ThematicBreak) String() string