Skip to main content

Module preprocess

Module preprocess 

Source
Expand description

Input preprocessor: pipe the source file through a user-defined command before tess reads it. Supports --preprocess CMD (CLI) and $LESSOPEN (env var). Pipe-mode only — the command must start with |, and %s is substituted with the source file path (shell-quoted).

Structs§

Preprocessor

Enums§

PreprocessResult

Functions§

run
Run the preprocessor against file_path. Substitutes %s with the path (shell-quoted via single quotes with internal quote escaping). Spawns via sh -c.