mdka exposes a small, focused public API. The table below shows the complete
surface — every function and type you need, nothing you don’t.
| Type | Description |
ConversionMode | Enum: Balanced · Strict · Minimal · Semantic · Preserve |
ConversionOptions | Controls pre-processing per-call; built via for_mode() |
ConvertResult | Returned by single-file functions: src + dest paths |
MdkaError | The only error type: wraps std::io::Error |
html_to_markdown and html_to_markdown_with never panic. They accept
any &str, including empty strings, binary garbage, or deeply nested HTML.
- File functions propagate IO errors via
Result<_, MdkaError>.
- Output is always valid UTF-8.
- Output always ends with a single newline when the input produces any content.