Skip to content

v3.2.5

Choose a tag to compare

@Goldziher Goldziher released this 18 Apr 11:19
d75c2c8

[3.2.5] - 2026-04-18

Fixed

  • Silent truncation on large HTML inputs (#277) — fixed preprocessing pipeline gap where strip_script_and_style_tags was not called after repair_with_html5ever, causing documents with custom elements and scripts containing literal <script> strings to be silently truncated. Also fixed preprocess_html fallback to skip only the problematic tag instead of consuming the rest of the document.
  • WASM plain-object options (#303) — WASM package now exports a wrapper convert() function that accepts plain JavaScript objects for options, eliminating the need to construct WasmConversionOptions class instances. The raw WASM classes remain available for advanced use.

Added

  • max_depth option — new max_depth field on ConversionOptions to limit DOM traversal depth, preventing stack overflow on deeply nested or malicious HTML. Default is None (unlimited). When set, subtrees beyond the limit are silently truncated.

Removed

  • Phantom type references (MetadataResult, HeadingInfo, LinkInfo, ImageInfo) from alef configuration that did not correspond to any Rust types.