console

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 Imported by: 0

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