markdown

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTargetResolverRequired = errors.New("target resolver required")

Functions

func Build

func Build(cfg config.ConfigContentMarkdown, options Options) gm.Markdown

Types

type Document

type Document struct {
	Body     template.HTML
	Sections []template.HTML
	ToC      []ToCEntry
}

func Render

func Render(md gm.Markdown, sourcePath, rawBody string) (Document, error)

type Options

type Options struct {
	TargetResolver TargetResolver
}

type TargetResolver

type TargetResolver func(target string) (string, error)

type ToCEntry

type ToCEntry struct {
	Level int
	ID    string
	Text  string
}

Jump to

Keyboard shortcuts

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