html

package
v0.0.197 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SanitizeURL

func SanitizeURL(raw string) (string, bool)

Types

type Generator

type Generator struct {
	Depth int
	Self  ast.Generator
}

func NewGenerator

func NewGenerator() *Generator

func (*Generator) Bold

func (g *Generator) Bold(w io.Writer, n *ast.Bold) error

func (*Generator) Code

func (g *Generator) Code(w io.Writer, n *ast.Code) error

func (*Generator) CodeIn

func (g *Generator) CodeIn(w io.Writer, n *ast.CodeIn) error

func (*Generator) Custom

func (g *Generator) Custom(w io.Writer, n *ast.Custom) error

func (*Generator) HR

func (g *Generator) HR(w io.Writer, n *ast.HR) error

func (*Generator) Image

func (g *Generator) Image(w io.Writer, n *ast.Image) error

func (*Generator) Indent

func (g *Generator) Indent(w io.Writer, n *ast.Indent) error

func (*Generator) Italic

func (g *Generator) Italic(w io.Writer, n *ast.Italic) error
func (g *Generator) Link(w io.Writer, n *ast.Link) error

func (*Generator) Quote

func (g *Generator) Quote(w io.Writer, n *ast.Quote) error

func (*Generator) QuoteOf

func (g *Generator) QuoteOf(w io.Writer, n *ast.QuoteOf) error

func (*Generator) Root

func (g *Generator) Root(w io.Writer, n *ast.Root) error

func (*Generator) Spoiler

func (g *Generator) Spoiler(w io.Writer, n *ast.Spoiler) error

func (*Generator) Sub

func (g *Generator) Sub(w io.Writer, n *ast.Sub) error

func (*Generator) Sup

func (g *Generator) Sup(w io.Writer, n *ast.Sup) error

func (*Generator) Text

func (g *Generator) Text(w io.Writer, t *ast.Text) error

func (*Generator) Underline

func (g *Generator) Underline(w io.Writer, n *ast.Underline) error

Jump to

Keyboard shortcuts

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