Documentation
¶
Index ¶
- type AnchorTag
- type BRTag
- type BlockquoteTag
- type BoldTag
- type Converter
- type FencedCodeTag
- type H1Tag
- type H2Tag
- type H3Tag
- type H4Tag
- type H5Tag
- type H6Tag
- type HRTag
- type ImageTag
- type InlineCodeTag
- type ItalicTag
- type ListItemTag
- type ListOrdering
- type ListTag
- type MarkdownElement
- type MarkdownElementType
- type ParagraphTag
- type PreTag
- type UnknownTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnchorTag ¶
type AnchorTag struct {
// contains filtered or unexported fields
}
func NewAnchorTag ¶
func (AnchorTag) Type ¶
func (a AnchorTag) Type() MarkdownElementType
type BlockquoteTag ¶
type BlockquoteTag struct{}
func NewBlockquoteTag ¶
func NewBlockquoteTag() *BlockquoteTag
func (BlockquoteTag) EndCode ¶
func (bl BlockquoteTag) EndCode() string
func (BlockquoteTag) StartCode ¶
func (bl BlockquoteTag) StartCode() string
func (BlockquoteTag) Type ¶
func (bl BlockquoteTag) Type() MarkdownElementType
type BoldTag ¶
type BoldTag struct{}
func NewBoldTag ¶
func NewBoldTag() *BoldTag
func (BoldTag) Type ¶
func (bold BoldTag) Type() MarkdownElementType
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
func NewConverter ¶
func NewConverter() *Converter
type FencedCodeTag ¶
type FencedCodeTag struct {
// contains filtered or unexported fields
}
func NewFencedCodeTag ¶
func NewFencedCodeTag(language string) *FencedCodeTag
func (FencedCodeTag) EndCode ¶
func (fc FencedCodeTag) EndCode() string
func (FencedCodeTag) StartCode ¶
func (fc FencedCodeTag) StartCode() string
func (FencedCodeTag) Type ¶
func (fc FencedCodeTag) Type() MarkdownElementType
type ImageTag ¶
type ImageTag struct {
// contains filtered or unexported fields
}
func NewImageTag ¶
func (ImageTag) Type ¶
func (img ImageTag) Type() MarkdownElementType
type InlineCodeTag ¶
type InlineCodeTag struct{}
func NewInlineCodeTag ¶
func NewInlineCodeTag() *InlineCodeTag
func (InlineCodeTag) EndCode ¶
func (ic InlineCodeTag) EndCode() string
func (InlineCodeTag) StartCode ¶
func (ic InlineCodeTag) StartCode() string
func (InlineCodeTag) Type ¶
func (ic InlineCodeTag) Type() MarkdownElementType
type ItalicTag ¶
type ItalicTag struct{}
func NewItalicTag ¶
func NewItalicTag() *ItalicTag
func (ItalicTag) Type ¶
func (italic ItalicTag) Type() MarkdownElementType
type ListItemTag ¶
type ListItemTag struct {
// contains filtered or unexported fields
}
func NewListItemTag ¶
func NewListItemTag(depth int, type_ ListOrdering, number string) *ListItemTag
func (ListItemTag) EndCode ¶
func (li ListItemTag) EndCode() string
func (ListItemTag) StartCode ¶
func (li ListItemTag) StartCode() string
func (ListItemTag) Type ¶
func (li ListItemTag) Type() MarkdownElementType
type ListTag ¶
type ListTag struct {
// contains filtered or unexported fields
}
func NewListTag ¶
func NewListTag(type_ ListOrdering, depth int) *ListTag
func (ListTag) Type ¶
func (l ListTag) Type() MarkdownElementType
type MarkdownElement ¶
type MarkdownElement interface { Type() MarkdownElementType StartCode() string EndCode() string }
type MarkdownElementType ¶
type MarkdownElementType int
const ( Bold MarkdownElementType = iota Italic H1 H2 H3 H4 H5 H6 Paragraph Anchor Image List // can be ordered as well unordered ListItem Blockquote InlineCode Pre FencedCode BR HR Unknown )
type ParagraphTag ¶
type ParagraphTag struct{}
func NewParagraphTag ¶
func NewParagraphTag() *ParagraphTag
func (ParagraphTag) EndCode ¶
func (p ParagraphTag) EndCode() string
func (ParagraphTag) StartCode ¶
func (p ParagraphTag) StartCode() string
func (ParagraphTag) Type ¶
func (p ParagraphTag) Type() MarkdownElementType
type UnknownTag ¶
type UnknownTag struct {
// contains filtered or unexported fields
}
func NewUnknownTag ¶
func NewUnknownTag(data string) *UnknownTag
func (UnknownTag) EndCode ¶
func (u UnknownTag) EndCode() string
func (UnknownTag) StartCode ¶
func (u UnknownTag) StartCode() string
func (UnknownTag) Type ¶
func (u UnknownTag) Type() MarkdownElementType
Click to show internal directories.
Click to hide internal directories.