md

package module
v0.0.0-...-152686b Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 7 Imported by: 1

README

md

Coverage Status GitHub Go Report Card

A Markdown renderer for github.com/yuin/goldmark.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRawParagraphParser

func NewRawParagraphParser() parser.BlockParser

NewRawParagraphParser returns a new BlockParser that parses paragraphs without any white space trimming.

func RawRenderParagraph

func RawRenderParagraph(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RawRenderText

func RawRenderText(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)
func RenderAutoLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RenderCodeSpan

func RenderCodeSpan(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RenderEmphasis

func RenderEmphasis(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RenderHeading

func RenderHeading(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RenderImage

func RenderImage(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)
func RenderLink(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func RenderNoop

func RenderNoop(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

RenderNoop does nothing.

Types

type RawRenderer

type RawRenderer struct{}

func (*RawRenderer) RegisterFuncs

func (r *RawRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

RegisterFuncs implements github.com/yuin/goldmark/renderer NodeRenderer.RegisterFuncs.

type Renderer

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

func (*Renderer) RegisterFuncs

func (r *Renderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

RegisterFuncs implements github.com/yuin/goldmark/renderer NodeRenderer.RegisterFuncs.

func (*Renderer) RenderBlockquote

func (r *Renderer) RenderBlockquote(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderCodeBlock

func (r *Renderer) RenderCodeBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderFencedCodeBlock

func (r *Renderer) RenderFencedCodeBlock(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderList

func (r *Renderer) RenderList(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderListItem

func (r *Renderer) RenderListItem(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderParagraph

func (r *Renderer) RenderParagraph(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

func (*Renderer) RenderText

func (r *Renderer) RenderText(w util.BufWriter, source []byte, node ast.Node, entering bool) (ast.WalkStatus, error)

Jump to

Keyboard shortcuts

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