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.
Click to show internal directories.
Click to hide internal directories.