tokarievnikitas11 downloadsClean up pasted LaTeX, edit formulas with a live preview, and write readable pseudocode.
LaTeX Bridge converts pasted LaTeX into Markdown math that Obsidian can render. It can recover missing delimiters, normalize common copy-and-paste artifacts, and remove a duplicated rendered formula beside its TeX source.
In a Markdown note, paste \(a^2+b^2=c^2\). The plugin converts it to $a^2+b^2=c^2$. Use Convert selected LaTeX to Obsidian math to try the same conversion on a selection. The converter skips protected regions such as fenced code.
Open the command palette and select Open Formula Studio to enter or edit a formula with a live preview. Place your cursor inside an existing formula to edit it in place. Open Pseudocode Studio creates or edits a fenced pseudocode block.
Paste a standalone TeX equation, an aligned derivation, a matrix or a cases environment. For example, pasting the three lines below creates one aligned display with the equals signs in one column.
a=b+c
=b+2
=5
Inline expressions can contain nested parentheses. Paste also recognizes math fences and math-only TeX fences. Ordinary code and Mermaid diagrams keep their fences. When a browser supplies embedded TeX in the rich clipboard (for example a KaTeX annotation), LaTeX Bridge can use that source even if the plain text contains only rendered symbols. Image-only clipboard items use Obsidian's usual attachment handling.
The expanded recognition is used for pasting and explicit selection or current-note conversion. A plain-text copy that has already lost its mathematical structure can be ambiguous.
On a new installation, paste cleanup is on. Startup vault scanning and automatic cleanup of opened or changed notes are off. You can turn them on separately in the plugin settings. Enabling the startup scan runs it immediately and on subsequent launches. The command Convert entire vault LaTeX to Obsidian math also runs a scan immediately.
Vault scans rewrite matching Markdown notes in place. Keep a backup before your first bulk conversion and try a selection first. Previously saved preferences take priority over the defaults.
Conversion, previews and pseudocode formatting run locally. The plugin reads pasted text during a paste, or reads the system clipboard when you run Paste clipboard with LaTeX cleanup. It uses Obsidian's vault API for note operations and saves its preferences in the plugin's settings file. No account, API key or network service is required.
main.js, manifest.json and styles.css from a release of this repository..obsidian/plugins/latex-bridge/ inside your vault.Use Node.js 22.22 or a compatible newer release with npm. From the repository root run:
npm ci
npm test
npm run build
The production build creates main.js in the repository root. Attach it to the GitHub release together with the root manifest.json and styles.css. The release tag must equal the version in the manifest.
MIT. See LICENSE.