mark

package
v0.0.0-...-d153ec4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Bold Tag = 1 << iota
	Italic
	Code
	Link

	Head1
	Head2
	Head3
	Head4
	Ruler
	Para

	Text   = Tag(0)
	Style  = Bold | Italic | Code | Link
	Header = Head1 | Head2 | Head3 | Head4
	Block  = Ruler | Para
	All    = Style | Header | Block
)

Variables

This section is empty.

Functions

This section is empty.

Types

type El

type El struct {
	Tag  Tag
	Cont string
	Els  []El
}

func Inline

func Inline(txt string) ([]El, error)

func Parse

func Parse(txt string) ([]El, error)

type Tag

type Tag uint

func (Tag) Inline

func (tag Tag) Inline(txt string) (res []El, _ error)

func (Tag) Parse

func (tag Tag) Parse(txt string) (res []El, err error)

Jump to

Keyboard shortcuts

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