using uCalcSoftware; var uc = new uCalc(); var t = new uCalc.Transformer(); var source = """ content spans multiple lines """; // This rule must disable StatementSensitive to capture the multi-line body, // otherwise the first newline would terminate the {body} variable. var rule = t.FromTo("{body}", "Body: [{body}]"); rule.StatementSensitive = false; Console.WriteLine(t.Transform(source));