giacolees54 downloadsConvert image regions to LaTeX formulas with local, offline AI inference.
Snap a photo of any equation. Get clean LaTeX. Never leave Obsidian.
Math-Convert runs a full AI model directly on your machine — no cloud, no subscription, no data leaving your device. Photograph a textbook, screenshot a paper, or paste from your clipboard, and within seconds you have publication-ready LaTeX to drop straight into your notes.
Perfect for formula sketching. FormulaNet is a compact 20 M-parameter model — small enough to run entirely in WebAssembly on a single thread. That tight architecture is what makes it ideal for a fast sketch-to-LaTeX workflow: draw or photograph a rough formula, get the LaTeX back in seconds, and keep writing. No GPU, no server, no waiting.

Retyping equations is tedious and error-prone. Online converters are slow, require accounts, and send your work to someone else's server. Math-Convert is different:
Math-Convert embeds FormulaNet, a 20 M-parameter vision-to-sequence model, and runs it locally using @huggingface/transformers over WebAssembly. The model is fetched from Hugging Face on first use and cached automatically — every subsequent conversion is instant and requires no internet connection.
The deliberately small parameter count is a feature, not a limitation. Larger OCR models demand a GPU or a cloud backend; FormulaNet fits entirely in WASM on a single thread, which is exactly what Obsidian's renderer provides. The tradeoff is that it excels at the core sketching use-case — clean, isolated formulas — rather than dense multi-formula pages.
| Setting | Default | Description |
|---|---|---|
| Model ID | alephpi/FormulaNet |
Hugging Face model ID. Swap in any compatible VisionEncoderDecoder checkpoint to experiment with alternative models. |
Once the plugin is approved in Obsidian's community catalog, install it from Settings -> Community plugins -> Browse and search for Math-Convert.
git clone https://github.com/giacolees/obsidian-ligthweightMathConvert
cd obsidian-ligthweightMathConvert
npm install
npm run build
Copy (or symlink) the repo folder into your vault's .obsidian/plugins/math-convert/, then enable it under Settings → Community plugins.
npm run dev # watch mode — rebuilds main.js on every change
npm run build # type-check + production build
npm run lint # run linting checks (ESLint)
npm version patch (or minor / major).manifest.json, main.js, and styles.css to the tagged release.MIT