@wdprlib/parser
    Preparing search index...
    • Expand all [[include]] directives in the source text.

      Uses Wikidot-compatible iterative expansion: each iteration replaces all include directives in the current source with fetched (and variable-substituted) content. Iteration continues until no further changes occur or maxIterations is reached.

      Parameters

      Returns string

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