markdown

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package markdown provides a Markdown renderer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenderer

func NewRenderer(opt *Options) blackfriday.Renderer

NewRenderer returns a Markdown renderer. If opt is nil the defaults are used.

func Process

func Process(filename string, src []byte, opt *Options) ([]byte, error)

Process formats Markdown. If opt is nil the defaults are used. Error can only occur when reading input from filename rather than src.

Types

type Options

type Options struct {
	// Terminal specifies if ANSI escape codes are emitted for styling.
	Terminal bool
}

Options specifies options for formatting.

Directories

Path Synopsis
Package indentwriter implements an io.Writer wrapper that indents every non-empty line with specified number of tabs.
Package indentwriter implements an io.Writer wrapper that indents every non-empty line with specified number of tabs.

Jump to

Keyboard shortcuts

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