Releases: kylehowells/swift-justhtml
Releases · kylehowells/swift-justhtml
v0.3.3 Bug fixed
- Fixed markdown rendering newlines at the start of
<p>elements. - Fixed flacky speed profiling test
v0.3
Breaking Change
Module renamed from swift_justhtml to justhtml
// Before
import swift_justhtml
// After
import justhtmlUpdate 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.swiftvariables (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