Exporter for Org-Mode documents
This crate exposes the [Exporter
] trait, which each backend must implement.
Examples
To convert an input string to HTML/Org, just invoke [Exporter::export
]:
use org_rust_exporter as org_exporter;
use ;
let html_str: String = export.unwrap;
let org_str: String = export.unwrap;
You can also export into a buffer that implements [fmt::Write
]:
use org_rust_exporter as org_exporter;
use ;
let mut html_str = String new;
let mut org_str = String new;
export_buf;
export_buf;
assert_eq!;
assert_eq!;