Versions in this module Expand all Collapse all v5 v5.100.1 Jun 2, 2020 v5.100.0 May 26, 2020 Changes in this version + var DefaultUrlSchemes = []string + func CharacterReference(ref string) string + func Inspect(markdown string, f func(interface{}) bool) + func InspectBlock(block Block, f func(Block) bool) + func InspectInline(inline Inline, f func(Inline) bool) + func Parse(markdown string) (*Document, []*ReferenceDefinition) + func ParseBlocks(markdown string, lines []Line) (*Document, []*ReferenceDefinition) + func RenderBlockHTML(block Block, referenceDefinitions []*ReferenceDefinition) (result string) + func RenderHTML(markdown string) string + func RenderInlineHTML(inline Inline) (result string) + func Unescape(markdown string) string + type Autolink struct + Children []Inline + RawDestination Range + func (Autolink) IsInline() bool + func (i *Autolink) Destination() string + type Block interface + AddLine func(indentation int, r Range) bool + AllowsBlockStarts func() bool + Close func() + Continuation func(indentation int, r Range) *continuation + HasTrailingBlankLine func() bool + type BlockQuote struct + Children []Block + func (*BlockQuote) AddLine(indentation int, r Range) bool + func (*BlockQuote) AllowsBlockStarts() bool + func (*BlockQuote) Close() + func (*BlockQuote) HasTrailingBlankLine() bool + func (b *BlockQuote) AddChild(openBlocks []Block) []Block + func (b *BlockQuote) Continuation(indentation int, r Range) *continuation + type CodeSpan struct + Code string + func (CodeSpan) IsInline() bool + type ContainerBlock interface + AddChild func(openBlocks []Block) []Block + type Document struct + Children []Block + func (*Document) AddLine(indentation int, r Range) bool + func (*Document) AllowsBlockStarts() bool + func (*Document) Close() + func (*Document) HasTrailingBlankLine() bool + func (b *Document) AddChild(openBlocks []Block) []Block + func (b *Document) Continuation(indentation int, r Range) *continuation + type FencedCode struct + Indentation int + OpeningFence Range + RawCode []FencedCodeLine + RawInfo Range + func (*FencedCode) Close() + func (*FencedCode) HasTrailingBlankLine() bool + func (b *FencedCode) AddLine(indentation int, r Range) bool + func (b *FencedCode) AllowsBlockStarts() bool + func (b *FencedCode) Code() (result string) + func (b *FencedCode) Continuation(indentation int, r Range) *continuation + func (b *FencedCode) Info() string + type FencedCodeLine struct + Indentation int + Range Range + type HardLineBreak struct + func (HardLineBreak) IsInline() bool + type IndentedCode struct + RawCode []IndentedCodeLine + func (*IndentedCode) HasTrailingBlankLine() bool + func (b *IndentedCode) AddLine(indentation int, r Range) bool + func (b *IndentedCode) AllowsBlockStarts() bool + func (b *IndentedCode) Close() + func (b *IndentedCode) Code() (result string) + func (b *IndentedCode) Continuation(indentation int, r Range) *continuation + type IndentedCodeLine struct + Indentation int + Range Range + type Inline interface + IsInline func() bool + func MergeInlineText(inlines []Inline) []Inline + func ParseInlines(markdown string, ranges []Range, referenceDefinitions []*ReferenceDefinition) (inlines []Inline) + type InlineImage struct + func (InlineImage) IsInline() bool + type InlineLink struct + func (InlineLink) IsInline() bool + type InlineLinkOrImage struct + Children []Inline + RawDestination Range + func (InlineLinkOrImage) IsInline() bool + func (i *InlineLinkOrImage) Destination() string + func (i *InlineLinkOrImage) Title() string + type Line struct + func ParseLines(markdown string) (lines []Line) + type List struct + BulletOrDelimiter byte + Children []*ListItem + IsLoose bool + IsOrdered bool + OrderedStart int + func (*List) AllowsBlockStarts() bool + func (b *List) AddChild(openBlocks []Block) []Block + func (b *List) AddLine(indentation int, r Range) bool + func (b *List) Close() + func (b *List) Continuation(indentation int, r Range) *continuation + func (b *List) HasTrailingBlankLine() bool + type ListItem struct + Children []Block + Indentation int + func (*ListItem) AllowsBlockStarts() bool + func (*ListItem) Close() + func (b *ListItem) AddChild(openBlocks []Block) []Block + func (b *ListItem) AddLine(indentation int, r Range) bool + func (b *ListItem) Continuation(indentation int, r Range) *continuation + func (b *ListItem) HasTrailingBlankLine() bool + type Paragraph struct + ReferenceDefinitions []*ReferenceDefinition + Text []Range + func (*Paragraph) AddLine(indentation int, r Range) bool + func (*Paragraph) AllowsBlockStarts() bool + func (*Paragraph) HasTrailingBlankLine() bool + func (b *Paragraph) Close() + func (b *Paragraph) Continuation(indentation int, r Range) *continuation + func (b *Paragraph) ParseInlines(referenceDefinitions []*ReferenceDefinition) []Inline + type Range struct + End int + Position int + type ReferenceDefinition struct + RawDestination Range + func (d *ReferenceDefinition) Destination() string + func (d *ReferenceDefinition) Label() string + func (d *ReferenceDefinition) Title() string + type ReferenceImage struct + func (ReferenceImage) IsInline() bool + type ReferenceLink struct + func (ReferenceLink) IsInline() bool + type ReferenceLinkOrImage struct + Children []Inline + func (ReferenceLinkOrImage) IsInline() bool + type SoftLineBreak struct + func (SoftLineBreak) IsInline() bool + type Text struct + Range Range + Text string + func (Text) IsInline() bool Other modules containing this package github.com/mad-app/mattermost-server