markdown

package
v0.0.0-...-a80a06e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(str string) string

func BoldAndItalic

func BoldAndItalic(str string) string

func Br

func Br() string

func Code

func Code(str string) string

func CodeBlock

func CodeBlock(str, lang string) string

func Heading

func Heading(str string, i int) (string, error)

func Italic

func Italic(str string) string
func Link(title, url string) string

func List

func List(items ...listItem) listItems

func MustHeading

func MustHeading(str string, i int) string

func NumList

func NumList(items ...listItem) listItems

func Quote

func Quote(str string) string

func RootList

func RootList(items ...listItem) string

func RootNumList

func RootNumList(items ...listItem) string

func RootTaskList

func RootTaskList(tasks ...taskItem) string

func Strikethrough

func Strikethrough(str string) string

func Table

func Table(header []string, data [][]string) string

func Task

func Task(completed bool, item string) taskItem

func TaskList

func TaskList(tasks ...taskItem) taskItem

Types

type Markdown

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

func NewMarkdown

func NewMarkdown() Markdown

func (Markdown) Render

func (m Markdown) Render() string

func (*Markdown) Write

func (m *Markdown) Write(comps ...string)

Jump to

Keyboard shortcuts

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