render

package
v0.0.0-...-0a48cd1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(dst io.Writer, src []byte, opts Options) error

Convert reads Markdown from src and writes styled HTML to dst.

Types

type Options

type Options struct {
	Fragment    bool   // emit only the inner HTML, no <html> wrapper
	Theme       string // "light", "dark", or "none"
	Unsafe      bool   // allow raw HTML passthrough in markdown
	ChromaStyle string // chroma syntax-highlighting style name
	Title       string // <title> for full-document mode
}

Options controls HTML output.

func DefaultOptions

func DefaultOptions() Options

Jump to

Keyboard shortcuts

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