Skip to content

gdoc-math v1.0.0 — Markdown+LaTeX → Google Doc with editable equations

Choose a tag to compare

@omriariav omriariav released this 25 May 09:41
gdoc-math-v1.0.0
543ff66

New plugin. /gdoc-math converts a Markdown file containing LaTeX into a native Google Doc whose equations are real, editable equation objects — not images, not literal $$ text. Fills the gap /copy:gdocs (Paste from Markdown) and Google's Export-to-Docs both leave open.

Pipeline: markdown+LaTeX →[pandoc]→ .docx (OMML) →[gws drive upload + convert --to docs]→ Google Doc (intermediate .docx auto-trashed). Verified end-to-end: equations round-trip as native m:oMath with zero embedded images.

Features

  • Inline ($…$), display ($$…$$), and \(…\) / \[…\] math
  • Input modes: a .md path, inline content, or the last math content in the conversation
  • --name, --folder, --keep-docx; optional default_folder_id in config.json
  • verify-setup.sh preflight + runnable examples/laplace-smoothing.md

Requirementspandoc, python3, and an authenticated gws (Google Workspace CLI). Verified at Step 0.

Note: complex LaTeX (stacked fractions, matrices, large operators) can lose fidelity on Google's import — spot-check those.

Hardened across three Codex review rounds. Relates to #24.