markdown

package
v0.0.0-...-05fba6c Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dump

func Dump(content string) error

only for debugging

func Split

func Split(content string, handler ChunkFunc) (title string, err error)

Types

type ChunkFunc

type ChunkFunc func(chunk string, chunkType ChunkType, contentType string) error

type ChunkType

type ChunkType uint
const (
	DescriptionChunk ChunkType = iota
	CodeChunk
)

type CodeBlockRenderer

type CodeBlockRenderer struct{}

func (*CodeBlockRenderer) RegisterFuncs

func (cr *CodeBlockRenderer) RegisterFuncs(reg renderer.NodeRendererFuncRegisterer)

Jump to

Keyboard shortcuts

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