BUG: Yet another Latex Pasting Bug

Author: TravisLEBLANC1Created Jan 29, 2026Updated Oct 1, 2026
Labelsbug

Have you searched for existing issues (including closed ones)?

  • Yes, I have searched the existing issues.

Does this bug persist in a new vault with only Excalidraw installed?

  • Yes, I have verified the issue persists.

Your environment

Obsidian version: v1.11.5 Excalidraw v2.20.0 (tested in sandboxx)

Your NotebookLM query

No response

Describe the bug

two pasted latex with different formulas end-up the same (plus the second one cannot be scaled, it comes back to the initial size on reloading)

https://github.com/user-attachments/assets/96ee435d-36a7-4bba-a478-edac9628eeb1

Steps to reproduce

1 : create 2 excalidraw files 2 : create a latex formulas in the first one 3 : copy-paste it to the second one 4 : modify the formulas in the first one 5 : copy-paste it again to the second one

The two formulas are the now same in the second file

Expected behavior

No response

Additional context

This is probably again a problem of fileId because the fileId is kept when updating the formulas and copying to the 2nd drawing. Meaning that for a short time, 2 objects have the same fileId but different formulas I believe.

I don't quite understand this fix: https://github.com/zsviczian/obsidian-excalidraw-plugin/blob/30abb1b7a7dc472b04eef1d896e87f4f34f92ef6/src/shared/ExcalidrawData.ts#L1658C5-L1705C8. It is triggered but probably too late?

But what I would do is:

I think It would get rid of most problems, and maybe remove the need for the fix in syncFiles

Source: zsviczian/obsidian-excalidraw-plugin