console

package
v1.21.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MarkupName = "console"

MarkupName describes markup's name

Functions

func Render

func Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error

Render renders terminal colors to HTML with all specific handling stuff.

func RenderString

func RenderString(ctx *markup.RenderContext, content string) (string, error)

RenderString renders terminal colors in string to HTML with all specific handling stuff and return string

Types

type Renderer

type Renderer struct{}

Renderer implements markup.Renderer

func (Renderer) CanRender

func (Renderer) CanRender(filename string, input io.Reader) bool

CanRender implements markup.RendererContentDetector

func (Renderer) Extensions

func (Renderer) Extensions() []string

Extensions implements markup.Renderer

func (Renderer) Name

func (Renderer) Name() string

Name implements markup.Renderer

func (Renderer) Render

func (Renderer) Render(ctx *markup.RenderContext, input io.Reader, output io.Writer) error

Render renders terminal colors to HTML with all specific handling stuff.

func (Renderer) SanitizerRules

func (Renderer) SanitizerRules() []setting.MarkupSanitizerRule

SanitizerRules implements markup.Renderer

Jump to

Keyboard shortcuts

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