wdpr
    Preparing search index...
    • Expand all [[include]] directives in the source text.

      Include directives are treated as macro expansions: [[include page]] is replaced with the fetched page content (after variable substitution). The result is a single expanded text that can be parsed as a whole, allowing block structures (like div) to span across include boundaries.

      Parameters

      Returns string

      const expanded = resolveIncludes(source, fetcher);
      const ast = parse(expanded);