Documentation ¶
Index ¶
Constants ¶
View Source
const ( NodeTypeNone = "none" NodeTypeBlockquote = "blockquote" NodeTypeBulletList = "bulletList" NodeTypeCodeBlock = "codeBlock" NodeTypeHeading = "heading" NodeTypeMediaGroup = "mediaGroup" NodeTypeMediaSingle = "mediaSingle" NodeTypeOrderedList = "orderedList" NodeTypePanel = "panel" NodeTypeParagraph = "paragraph" NodeTypeRule = "rule" NodeTypeTable = "table" NodeTypeListItem = "listItem" NodeTypeMedia = "media" NodeTypeTableCell = "table_cell" NodeTypeTableHeader = "table_header" NodeTypeTableRow = "table_row" NodeTypeEmoji = "emoji" NodeTypeHardBreak = "hardBreak" NodeTypeInlineCard = "inlineCard" NodeTypeMention = "mention" NodeTypeText = "text" )
Node types
View Source
const ( LayoutWrapLeft = "wrap-left" LayoutCenter = "center" LayoutWrapRight = "wrap-right" LayoutWide = "wide" LayoutFullWidth = "full-width" LayoutAlignStart = "align-start" LayoutAlignEnd = "align-end" )
Enum values for Layout in Attributes struct
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ADFRenderer ¶
type ADFRenderer struct {
// contains filtered or unexported fields
}
ADFRenderer implements goldmark.Renderer
func NewRenderer ¶
func NewRenderer() *ADFRenderer
func (*ADFRenderer) AddOptions ¶
func (*ADFRenderer) AddOptions(...renderer.Option)
type Attributes ¶
type MarkAttributes ¶
type MarkStruct ¶
type MarkStruct struct { Type Mark `json:"type,omitempty"` Attributes *MarkAttributes `json:"attrs,omitempty"` }
type Node ¶
type Node struct { Type NodeType `json:"type"` Version int `json:"version,omitempty"` Attributes *Attributes `json:"attrs,omitempty"` Content []*Node `json:"content,omitempty"` Marks []MarkStruct `json:"marks,omitempty"` Text string `json:"text,omitempty"` }
func (*Node) AddContent ¶
Click to show internal directories.
Click to hide internal directories.