github steipete/Demark 1.2.0

7 hours ago

[1.2.0] - 2026-08-02

Added

  • URL conversion API: convertToMarkdown(url:options:loadingOptions:) loads pages in WKWebView, extracts rendered HTML, and converts it through the existing Markdown pipeline. Thanks @atacan.

Fixed

  • URL conversion now accepts case-insensitive HTTP and HTTPS schemes as required by URL standards.

Changed

  • Reworked the README into a concise installation and usage guide, with detailed API documentation moved to docs/usage.md.
  • Updated bundled Turndown.js from 7.2.2 to 7.2.4, fixing link/image escaping while making WKWebView initialization navigation-safe, serialized, and time-bounded.
  • Live URL loading tests are now opt-in with DEMARK_LIVE_TESTS=1, keeping the default test suite deterministic and offline-safe.
  • Platform/runtime availability is now explicit: WebKit-backed conversion throws runtimeUnavailable when WebKit is unavailable, and html-to-md throws the same clear error when JavaScriptCore is unavailable.

Don't miss a new Demark release

NewReleases is sending notifications on new releases.