Skip to main content

html_to_markdown_ffi_platform 1.2.7 copy "html_to_markdown_ffi_platform: ^1.2.7" to clipboard
html_to_markdown_ffi_platform: ^1.2.7 copied to clipboard

Typed HTML to Markdown conversion for the Zuraffa ecosystem: a Rust FFI core behind a pure-Dart converter port with federated native adapters.

html_to_markdown_ffi_platform #

The Flutter-free core of the html_to_markdown_ffi family, and the family's entry point for a consumer that is not a Flutter app.

This package asks for no Flutter SDK and declares no plugin manifest, so a CLI, a server or a background worker can depend on it alone and convert HTML to Markdown:

dependencies:
  html_to_markdown_ffi_platform: ^1.2.5
import 'package:html_to_markdown_ffi_platform/html_to_markdown_ffi_platform.dart';

final result = convert('<h1>Hello</h1><p>from <b>FFI</b></p>');
print(result.content); // # Hello\n\nfrom **FFI**

The conversion runs over the same in-process dart:ffi bridge the federated adapters and the app-facing package use, so it is the same conversion — not a second implementation.

What lives here #

  • the transport seam (PlatformHtmlToMarkdownFfiEnvelope — payload decode, typed error mapping, timeout) and the native-library resolver seam (HtmNativeLibraries) the adapters use to contribute their bundled binaries to the preserved loading chain;
  • the pure-Dart port contract the adapters implement (HtmlToMarkdownFfiPort);
  • the shared value types — ConversionOptions, ConversionResult, the HeadingStyle / LinkStyle / CodeBlockStyle enums, the typed exception family and the Visitor contract;
  • the top-level convert(), convertAsync() and nativeConverterAvailable.

Two entry points #

Consumer Declare Flutter SDK
A Flutter app html_to_markdown_ffi required
A CLI, server or worker html_to_markdown_ffi_platform not required

A package that carries a flutter: plugin: manifest requires the Flutter SDK — pub.dev will not publish it without an environment: flutter: constraint, and any value of that constraint makes it unresolvable for a standalone Dart SDK. That is why the family ships two entry points rather than one.

The app-facing package's convert() additionally prefers a registered platform adapter over the direct bridge, which a pure-Dart consumer has no way to register.

The native library #

The loader chain still honors HTML_TO_MARKDOWN_FFI_LIB_PATH, the legacy native/ bundle, the ~/.html_to_markdown_ffi cache, and GitHub release downloads.

0
likes
140
points
453
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

Typed HTML to Markdown conversion for the Zuraffa ecosystem: a Rust FFI core behind a pure-Dart converter port with federated native adapters.

Homepage
Repository (GitHub)
View/report issues

Topics

#html-to-markdown-ffi #clean-architecture #zuraffa

License

MIT (license)

Dependencies

ffi, http, zuraffa, zuraffa_ffi_platform

More

Packages that depend on html_to_markdown_ffi_platform