Back to Explore

syntax-tree/hast-util-from-html

GitHub
1 watchersOpen source

Last release: 9/17/2024

hast-util-from-html is a utility that parses serialized HTML into a hast (HTML AST) syntax tree. It is useful when you want to work with syntax trees directly, with options for parsing fragments, switching between HTML and embedded SVG, and configuring how HTML parse errors are handled.

Project status

  • Actively maintained, as indicated by recent updates in 2024 (latest on 2024-09-17) and prior follow-ups to address TypeScript typing and tooling.
  • Apparent update cadence, updates came in close succession in 2024-08 and 2024-09 (about a month apart), but the earlier update (2023-08) suggests bursts rather than continuous monthly changes.

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • 2.0.3

    9/17/2024

    Release 2.0.3 primarily contains a TypeScript declaration fix, described as correcting types that were accidentally destroyed by `xo`. The code diff is limited to type definitions and tooling configuration, with no runtime implementation changes shown.

  • 2.0.2

    8/22/2024

    Release 2.0.2 primarily adds TypeScript declaration map generation (declarationMap) and introduces explicit type declaration files. Code changes also reorganize where the public types are defined and exported, while the runtime behavior of `fromHtml` appears effectively unchanged.

  • 2.0.1

    8/8/2023

    Release 2.0.1 is a small update focused on TypeScript/JSDoc typing. The documented change is a fix related to registering data from `hast-util-from-parse5`.