ast

package
v0.4.3-final-apache Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Period listMarker = '.'
	Paren  listMarker = ')'
	Star   listMarker = '*'
	Plus   listMarker = '+'
	Hyphen listMarker = '-'
)

Variables

View Source
var Italic = Emphasis

Functions

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(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 LineBreak

func LineBreak() *astv1.Node_Text
func Link(text ...astv1.InlineContent) *astv1.LinkOrImage

func List

func List(marker listMarker) *astv1.Node_List

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 Text

func Text(text string) (res astv1.Inlines)

func ThematicBreak

func ThematicBreak() *astv1.Node_ThematicBreak

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL