preprocessor

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2017 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Preprocessor

type Preprocessor struct {
	// contains filtered or unexported fields
}

Preprocessor provides pre-processing capabilties for markdown code.

func New

func New(logger logger.Logger, imageProvider *imageprovider.ImageProvider) *Preprocessor

New creates an instance of a Markdown Preprocessor.

func (*Preprocessor) Convert

func (preprocessor *Preprocessor) Convert(
	aliasResolver func(alias string) *model.Item,
	pathProvider paths.Pather,
	itemRoute route.Route,
	files []*model.File,
	markdown string) (processedMarkdown string, errors error)

Convert converts all markdown extensions in the supplied markdown to normal markdown code or HTML.

Jump to

Keyboard shortcuts

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