markup

package
v0.0.0-...-85b91c5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 13 Imported by: 1

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

type Renderer struct{}

Renderer implements markup.Renderer for orgmode

func (Renderer) Extensions

func (Renderer) Extensions() []string

Extensions implements markup.Renderer

func (Renderer) Name

func (Renderer) Name() string

Name implements markup.Renderer

func (Renderer) NeedPostProcess

func (Renderer) NeedPostProcess() bool

NeedPostProcess implements markup.PostProcessRenderer

func (Renderer) Render

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

Render renders orgmode string to HTML string

func (Renderer) SanitizerRules

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

SanitizerRules implements markup.Renderer

type Writer

type Writer struct {
	*org.HTMLWriter
	URLPrefix string
	IsWiki    bool
}

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