markup

package
v1.22.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: MIT Imports: 12 Imported by: 44

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

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

Render renders orgmode rawbytes to HTML

func RenderString

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

RenderString renders orgmode string to HTML string

Types

type Renderer added in v1.11.0

type Renderer struct{}

Renderer implements markup.Renderer for orgmode

func (Renderer) Extensions added in v1.15.0

func (Renderer) Extensions() []string

Extensions implements markup.Renderer

func (Renderer) Name added in v1.15.0

func (Renderer) Name() string

Name implements markup.Renderer

func (Renderer) NeedPostProcess added in v1.15.0

func (Renderer) NeedPostProcess() bool

NeedPostProcess implements markup.PostProcessRenderer

func (Renderer) Render added in v1.15.0

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

Render renders orgmode string to HTML string

func (Renderer) SanitizerRules added in v1.15.0

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

SanitizerRules implements markup.Renderer

type Writer added in v1.15.0

type Writer struct {
	*org.HTMLWriter
	Ctx *markup.RenderContext
}

Writer implements org.Writer

func (r *Writer) WriteRegularLink(l org.RegularLink)

WriteRegularLink renders images, links or videos

Jump to

Keyboard shortcuts

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