render

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HighlightCSS

func HighlightCSS() string

HighlightCSS returns Chroma CSS for both the light and dark themes, scoped so the dark theme applies only when html carries the .dark class.

func Render

func Render(source string, noteIndex map[int]string, processImage ProcessImageFunc) ([]byte, error)

Render converts Markdown to HTML. noteIndex maps note IDs to their public paths (for link resolution). processImage is called for external image URLs (may be nil).

Types

type ProcessImageFunc

type ProcessImageFunc func(src string) (localName string, err error)

ProcessImageFunc is called for each external image URL during rendering.

Jump to

Keyboard shortcuts

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