image

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 26 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(ctx context.Context, b []byte, nativeOnly bool) error

Render renders the provided raw image to stdout using the legacy boolean API. A true value restricts decoding to built-in decoders. New callers should use RenderWithMode so auto mode cannot accidentally run a process.

func RenderWithMode added in v0.28.0

func RenderWithMode(ctx context.Context, b []byte, mode core.ImageSetting) error

RenderWithMode renders an image using the requested image policy. Unknown and auto modes are deliberately built-in-only. External processes are an explicit opt-in because image responses are untrusted input and adapters have a much larger attack surface than the Go decoders.

func RenderWithModeTo added in v0.28.0

func RenderWithModeTo(ctx context.Context, b []byte, mode core.ImageSetting, dst io.Writer) error

RenderWithModeTo decodes an image and writes its terminal presentation to dst. Keeping the destination explicit lets Markdown presentation buffer image protocols together with the surrounding document.

Types

This section is empty.

Jump to

Keyboard shortcuts

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