Skip to content

Releases: kylehowells/swift-justhtml

v0.3.3 Bug fixed

18 Dec 09:25

Choose a tag to compare

  • Fixed markdown rendering newlines at the start of <p> elements.
  • Fixed flacky speed profiling test

v0.3

17 Dec 23:52

Choose a tag to compare

Breaking Change

Module renamed from swift_justhtml to justhtml

// Before
import swift_justhtml

// After
import justhtml

Update your Package.swift dependency:

dependencies: ["justhtml"]

New Features

Example CLI Tools

  • html2md - Minimal HTML to Markdown converter demonstrating toMarkdown() API
  • extractlinks - Extract all links from HTML using CSS selectors

Documentation

  • Added comprehensive DocC documentation with GitHub Pages hosting
  • New guides: Performance, Benchmarking, Examples, Getting Started
  • Added READMEs for all example tools
  • Interactive Xcode Playground with examples

Benchmarking

  • Memory usage comparison script (memory_compare.py)
  • Synthetic HTML generator for consistent benchmarking
  • Updated benchmark scripts to support test files directory

Improvements

API Cleanup

  • Made internal constants and types properly internal (not public):
    • Constants.swift variables (VOID_ELEMENTS, ASCII_WHITESPACE, etc.)
    • Entity lookup tables (LEGACY_ENTITIES, NAMED_ENTITIES)
    • Experimental ArenaNode types
  • Removed unused experimental ArenaNode code

Platform Support

  • Added visionOS support
  • Temporarily disabled macOS GitHub Actions runners

Full Changelog

v0.2...v0.3