Skip to main content

Crate anydoc

Crate anydoc 

Source
Expand description

anydoc converts documents to GitHub-Flavored Markdown.

Recovery and skipped-content events are reported through the log facade (debug/warn level); logging never changes conversion behavior and its messages are not a stable API.

Modules§

model
Information-preserving document model.

Enums§

ConvertError
Why a conversion could not produce a useful result.
Format
Input format. Selects the parser; container variants that share a parser (docm, xlsm, …) map onto these via Format::from_bytes or Format::from_extension.

Functions§

to_document
Parse an in-memory document into the document model. Pass a Format to select the parser, or None to detect it from the content.
to_markdown
Convert a document file to Markdown. The format is detected from the file content (Format::from_bytes); the extension is the fallback for signature-less formats (CSV) and unrecognizable containers.
to_markdown_bytes
Convert an in-memory document to Markdown. Pass a Format to select the parser, or None to detect it from the content (Format::from_bytes), which signature-less formats (CSV) have to name explicitly.