render

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MermaidJS []byte

Functions

func File

func File(path string, opts Options) ([]byte, error)

func TempFilePath

func TempFilePath(sourcePath string) (string, error)

Types

type Options

type Options struct {
	WatchMode bool
	Title     string
	Theme     Theme
	Unsafe    bool
	Contents  bool
}

type TOCEntry added in v0.1.4

type TOCEntry struct {
	Level int
	Text  string
	ID    string
}

type Theme

type Theme string
const (
	ThemeDark  Theme = "dark"
	ThemeLight Theme = "light"
)

Jump to

Keyboard shortcuts

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