Skip to content

evaluateDocument

function evaluateDocument(
engine,
input,
_options?
): ParsingResult;

Defined in: packages/engine/src/engine/evaluateDocument.ts:59

Evaluate a whole document with full cross-line context, including the line re-runs goal seek needs, and return per-line results in the same shape ExpressionEngine.parseDocument produces.

ParameterTypeDescription
engineExpressionEngineThe engine to borrow for the pass. Its current document model (if any) is restored before returning.
inputstringThe document text, newline-separated.
_optionsUnifiedParsingOptionsAccepted so a call reads the same as parseDocument’s, but not consulted: the incremental pass reads the document as markdown regardless.

ParsingResult