html_to_markdown_ffi 1.2.0 copy "html_to_markdown_ffi: ^1.2.0" to clipboard
html_to_markdown_ffi: ^1.2.0 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 #

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

Use #

Preserved public API (pre-migration compatible) #

import 'package:html_to_markdown_ffi/html_to_markdown.dart';

final md = convert('<h1>Title</h1>');
// md.content == '# Title'

Zuraffa stack #

import 'package:html_to_markdown_ffi/html_to_markdown_ffi.dart';

final service = HtmlToMarkdownFfiService.native(); // in-process bridge
final result = await service.convertAsync('<h1>Title</h1>');

Or register the stack on GetIt and wire a platform adapter's port for the running platform:

final getIt = GetIt.instance;
registerHtmlToMarkdownFfiDependencies(getIt, port: myPlatformPort);
final service = getIt<HtmlToMarkdownFfiService>();

Platform adapters #

Ship the adapter for each platform you target — it bundles the prebuilt native binary and registers the port:

The shared envelope machinery lives in html_to_markdown_ffi_platform.

4
likes
140
points
39
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.

Topics

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

License

MIT (license)

Dependencies

ffi, http, zorphy_annotation, zuraffa

More

Packages that depend on html_to_markdown_ffi