markup

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Remove_backslash_escapes

func Remove_backslash_escapes(text string) string

func ReplaceAllRSTRoles

func ReplaceAllRSTRoles(str string, repl func(Rst_format_match) string) string

func Text_and_target

func Text_and_target(x string) (text string, target string)

Types

type Context

type Context struct {
	Cyan, Green, Blue, Magenta, Red, BrightRed, Yellow, Italic, Bold, Dim, Title, Exe, Opt, Emph, Err, Code func(args ...interface{}) string
	Url                                                                                                     func(string, string) string
	// contains filtered or unexported fields
}

func New

func New(allow_escape_codes bool) *Context

func (*Context) EscapeCodesAllowed

func (self *Context) EscapeCodesAllowed() bool

func (*Context) Prettify

func (self *Context) Prettify(text string) string

func (*Context) SetAllowEscapeCodes

func (self *Context) SetAllowEscapeCodes(allow_escape_codes bool)

type Rst_format_match

type Rst_format_match struct {
	Role, Payload string
}

Jump to

Keyboard shortcuts

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