mdcode

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Walk

func Walk(source []byte, walker Walker) (bool, []byte, error)

Types

type Block

type Block struct {
	Lang      string
	Meta      Meta
	Code      []byte
	StartLine int
	EndLine   int
}

type Blocks

type Blocks []*Block

func Unfence

func Unfence(source []byte) (Blocks, error)

type Meta

type Meta map[string]interface{}

func (Meta) Get

func (m Meta) Get(name string) string

type Walker

type Walker func(block *Block) error

Jump to

Keyboard shortcuts

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