Versions in this module Expand all Collapse all v1 v1.4.0 May 7, 2026 Changes in this version + func ApplyTheme(cfg *Config, name string) error + func RenderImage(input string, cfg Config) (image.Image, error) + func RenderPNG(w io.Writer, input string, cfg Config) error type Config + CodeFontFile string + FontFile string + HeadingFile string + LinkColor Color + TableHeaderFile string v1.3.0 May 7, 2026 Changes in this version type Config + HeadingBold bool + TableAutoWidth bool v1.2.0 May 7, 2026 Changes in this version type Config + Trim bool + TrimPadding float64 v1.1.0 May 6, 2026 Changes in this version + func RenderWithConfig(input, output string, cfg Config) error + type Color struct + B int + G int + R int + func HexToColor(s string) (Color, error) + type Config struct + AsPDF bool + BlockquoteFont string + BlockquoteLineColor Color + BlockquoteTextColor Color + CodeBg Color + CodeFont string + CodeFontSize float64 + CodeLineHeight float64 + DPI int + FontFamily string + FontSize float64 + HRColor Color + HRLineWidth float64 + HeadingColor Color + HeadingFont string + HeadingSizes [6]float64 + MarginBottom float64 + MarginLeft float64 + MarginRight float64 + MarginTop float64 + PageHeight float64 + PageWidth float64 + TableCellHeight float64 + TableHeaderBg Color + TableHeaderFg Color + TableHeaderFont string + TableHeaderSize float64 + TableRowEven Color + TableRowOdd Color + TextColor Color + func DefaultConfig() Config v1.0.0 May 6, 2026 Changes in this version + var Version = "dev" + func Render(input, output string) error