markdown

package
v1.8.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EmojiArrowRight     = ":arrow_right:"
	EmojiWhiteCheckMark = ":white_check_mark:"
	EmojiCrossMark      = ":x:"
	EmojiLink           = ":link:"
	EmojiWarning        = ":warning:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MarkdownBuilder

type MarkdownBuilder struct {
	// contains filtered or unexported fields
}

func NewMarkdownBuilder

func NewMarkdownBuilder() *MarkdownBuilder

func (*MarkdownBuilder) AddBulletPoint

func (mb *MarkdownBuilder) AddBulletPoint(text string)

AddBulletPoint adds a bullet point to the markdown document.

func (*MarkdownBuilder) AddCodeSnippet

func (mb *MarkdownBuilder) AddCodeSnippet(code, language string)

AddCodeSnippet adds a code snippet to the markdown document.

func (*MarkdownBuilder) AddCollapsibleSection added in v1.8.3

func (mb *MarkdownBuilder) AddCollapsibleSection(section *MarkdownCollapsibleSection)

AddCollapsibleSection adds a collapsible section to the markdown document.

func (*MarkdownBuilder) AddHeader

func (mb *MarkdownBuilder) AddHeader(level int, text string)

AddHeader adds a header to the markdown document.

func (*MarkdownBuilder) AddNumberedPoint

func (mb *MarkdownBuilder) AddNumberedPoint(number int, text string)

AddNumberedPoint adds a numbered point to the markdown document.

func (*MarkdownBuilder) AddParagraph

func (mb *MarkdownBuilder) AddParagraph(text string)

AddParagraph adds a paragraph to the markdown document.

func (*MarkdownBuilder) Build

func (mb *MarkdownBuilder) Build() string

func (*MarkdownBuilder) StartCollapsibleSection added in v1.8.3

func (mb *MarkdownBuilder) StartCollapsibleSection(title string) *MarkdownCollapsibleSection

StartCollapsibleSection starts a collapsible section in the markdown document.

type MarkdownCollapsibleSection added in v1.8.3

type MarkdownCollapsibleSection struct {
	// contains filtered or unexported fields
}

func (*MarkdownCollapsibleSection) Builder added in v1.8.3

Jump to

Keyboard shortcuts

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