Skip to content

Releases: JabRef/html-to-node

html-to-node 0.1.0

Choose a tag to compare

@koppor koppor released this 14 Jul 15:18

First release of html-to-node — a JavaFX library that renders HTML as plain scene-graph nodes (TextFlow, Text, ImageView) with no dependency on javafx.web.

Available on Maven Central:

implementation("org.jabref:html-to-node:0.1.0")

Added

  • HTML-to-node rendering (HtmlToNode.render): renders the HTML subset produced by JabRef's entry preview — user-defined layouts, CSL output from citeproc-java, Markdown from flexmark-java, and <mark> search highlights — as plain JavaFX TextFlow, Text, and ImageView nodes with no dependency on javafx.web or javafx.controls.
  • HtmlView (a VBox) and the intermediate block/inline model (HtmlToNode.parse) for consumers that want to inspect or post-process the parsed structure before rendering.
  • HtmlRenderOptions for configuring rendering, including a base URI for resolving relative image and link URLs (and withoutBaseUri() to opt out).
  • Mouse text selection across rendered blocks in the plain-node renderer.
  • RichTextArea-based renderer (RichHtmlView, HtmlRichTextArea, RichTextRenderer) with inline images, link hovering (hand cursor), and content-height sizing.
  • The module is null-marked with JSpecify annotations.

See CHANGELOG.md for details.