impasto
    Preparing search index...

    Function createCoreTransform

    • Create a core transform.

      Caution: This transform mutates the input AST.

      This transform is intended to be used as a common pre-processing step. Other, more configurable transforms can be applied afterward, where they can leverage the consistent output from this transform.

      This transform handles:

      • Line splitting — Each line's content is wrapped with <div class="imp-l">
      • Trimming/collapsing empty lines
      • Trimming trailing whitespace from lines
      • Annotation parsing
      • Section parsing
      • Whitespace wrapping — Spaces are wrapped with <span class="imp-s">, and tabs are wrapped with <span class="imp-t">
      • Redaction of sensitive information - Redactions are wrapped with <span class="imp-rd" data-imp-rd="<type>">

      Parameters

      Returns (tree: Root) => CoreTransformResult