ocracy.backends.mathpix.adapter

Adapter for Mathpix — image -> Mathpix-Markdown / LaTeX via the Convert API.

Mathpix is a text-oriented (not box-oriented) engine: the primary payload is a Markdown/LaTeX string, surfaced as result.text and result.markdown; the LaTeX form and confidence are kept in result.meta and the raw JSON in result.raw.

class ocracy.backends.mathpix.adapter.Adapter(config: dict)[source]

Mathpix Convert API adapter.