markup

package
v0.0.0-...-dcddd34 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Colors = []string{"gray",
	"red",
	"yellow",
	"green",
	"blue",
	"indigo",
	"purple",
	"pink",
	"rose",
	"teal",
}

Functions

func ClosestColor

func ClosestColor(hexColor string) string

func DivsAndDivs

func DivsAndDivs()

func IsValidTag

func IsValidTag(s string) bool

func RandomColor

func RandomColor() string

func ToHTML

func ToHTML(m map[string]any, filename string) string

func ToHTMLFromLines

func ToHTMLFromLines(m map[string]any, asLines []string) string

Types

type Tag

type Tag struct {
	Name     string
	Text     string
	Children []*Tag
	Close    bool
	Attr     map[string]string
}

func NewTag

func NewTag(index int, tokens []string) *Tag

func (*Tag) MakeAttr

func (t *Tag) MakeAttr() string

Jump to

Keyboard shortcuts

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