diff --git a/src/lightpanda.zig b/src/lightpanda.zig index be9d727f..03bced65 100644 --- a/src/lightpanda.zig +++ b/src/lightpanda.zig @@ -120,7 +120,7 @@ pub fn fetch(app: *App, url: [:0]const u8, opts: FetchOpts) !void { .registry = ®istry, .page = page, .arena = page.call_arena, - .prune = false, + .prune = (mode == .semantic_tree_text), }; if (mode == .semantic_tree) {