Documentation
¶
Index ¶
- Constants
- Variables
- func AutoLink(url string) *astv1.Node_AutoLink
- func AutoLinkEmail(email string) *astv1.Node_AutoLink
- func Blockquote(children ...astv1.BlockContent) *astv1.Node_Blockquote
- func CodeSpan(code []byte) *astv1.Node_CodeSpan
- func Emphasis(children ...astv1.InlineContent) *astv1.Node_Emphasis
- func FencedCodeBlock(code []byte) *astv1.Node_FencedCodeBlock
- func HTMLBlock(html []byte) *astv1.Node_HtmlBlock
- func Header(level uint32, children ...astv1.InlineContent) *astv1.Node_Heading
- func Image(alt ...astv1.InlineContent) *astv1.LinkOrImage
- func IndentedCodeBlock(code []byte) *astv1.Node_CodeBlock
- func InlineHTML(html string) *astv1.Node_RawHtml
- func LineBreak() *astv1.Node_Text
- func Link(text ...astv1.InlineContent) *astv1.LinkOrImage
- func List(marker listMarker) *astv1.Node_List
- func Paragraph(children ...astv1.InlineContent) *astv1.Node_Paragraph
- func Strikethrough(children ...astv1.InlineContent) *astv1.Node_Strikethrough
- func StrongEmphasis(children ...astv1.InlineContent) *astv1.Node_Emphasis
- func Table() *astv1.Node_Table
- func Text(text string) (res astv1.Inlines)
- func ThematicBreak() *astv1.Node_ThematicBreak
Constants ¶
View Source
const ( Period listMarker = '.' Paren listMarker = ')' Star listMarker = '*' Plus listMarker = '+' Hyphen listMarker = '-' )
Variables ¶
View Source
var ( AlignLeft = astv1.CellAlignment_CELL_ALIGNMENT_LEFT AlignRight = astv1.CellAlignment_CELL_ALIGNMENT_RIGHT AlignCenter = astv1.CellAlignment_CELL_ALIGNMENT_CENTER AlignNone = astv1.CellAlignment_CELL_ALIGNMENT_NONE )
View Source
var Bold = StrongEmphasis
View Source
var Italic = Emphasis
Functions ¶
func AutoLink ¶
func AutoLink(url string) *astv1.Node_AutoLink
func AutoLinkEmail ¶
func AutoLinkEmail(email string) *astv1.Node_AutoLink
func Blockquote ¶
func Blockquote(children ...astv1.BlockContent) *astv1.Node_Blockquote
container blocks
func CodeSpan ¶
func CodeSpan(code []byte) *astv1.Node_CodeSpan
func Emphasis ¶
func Emphasis(children ...astv1.InlineContent) *astv1.Node_Emphasis
func FencedCodeBlock ¶
func FencedCodeBlock(code []byte) *astv1.Node_FencedCodeBlock
func HTMLBlock ¶
func HTMLBlock(html []byte) *astv1.Node_HtmlBlock
func Header ¶
func Header(level uint32, children ...astv1.InlineContent) *astv1.Node_Heading
func Image ¶
func Image(alt ...astv1.InlineContent) *astv1.LinkOrImage
func IndentedCodeBlock ¶
func IndentedCodeBlock(code []byte) *astv1.Node_CodeBlock
func InlineHTML ¶
func InlineHTML(html string) *astv1.Node_RawHtml
func Link ¶
func Link(text ...astv1.InlineContent) *astv1.LinkOrImage
func Paragraph ¶
func Paragraph(children ...astv1.InlineContent) *astv1.Node_Paragraph
func Strikethrough ¶
func Strikethrough(children ...astv1.InlineContent) *astv1.Node_Strikethrough
func StrongEmphasis ¶
func StrongEmphasis(children ...astv1.InlineContent) *astv1.Node_Emphasis
func Table ¶
func Table() *astv1.Node_Table
func ThematicBreak ¶
func ThematicBreak() *astv1.Node_ThematicBreak
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.