markup

package
v1.999.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(rawBytes []byte, urlPrefix string, metas map[string]string, isWiki bool) []byte

Render renders orgmode rawbytes to HTML

func RenderString

func RenderString(rawContent string, urlPrefix string, metas map[string]string, isWiki bool) string

RenderString reners orgmode string to HTML string

Types

type Parser

type Parser struct {
}

Parser implements markup.Parser for orgmode

func (Parser) Extensions

func (Parser) Extensions() []string

Extensions implements markup.Parser

func (Parser) Name

func (Parser) Name() string

Name implements markup.Parser

func (Parser) Render

func (Parser) Render(rawBytes []byte, urlPrefix string, metas map[string]string, isWiki bool) []byte

Render reners orgmode string to HTML string

type Renderer added in v1.8.0

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

Renderer implements org.Writer

func (r *Renderer) 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