diff --git a/manifest.json b/manifest.json index 9d54ff1..9940ade 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "2.1.5", + "version": "2.1.6", "minAppVersion": "1.1.6", "description": "An Obsidian plugin to edit and view Excalidraw drawings", "author": "Zsolt Viczian", diff --git a/src/ExcalidrawData.ts b/src/ExcalidrawData.ts index 13da581..4f1a23a 100644 --- a/src/ExcalidrawData.ts +++ b/src/ExcalidrawData.ts @@ -329,10 +329,10 @@ export const getExcalidrawMarkdownHeaderSection = (data:string, keys?:[string,st let header = updateFrontmatterInString(data.substring(0, trimLocation),keys); //this should be removed at a later time. Left it here to remediate 1.4.9 mistake - const REG_IMG = /(^---[\w\W]*?---\n)(!\[\[.*?]]\n(%%\n)?)/m; //(%%\n)? because of 1.4.8-beta... to be backward compatible with anyone who installed that version + /*const REG_IMG = /(^---[\w\W]*?---\n)(!\[\[.*?]]\n(%%\n)?)/m; //(%%\n)? because of 1.4.8-beta... to be backward compatible with anyone who installed that version if (header.match(REG_IMG)) { header = header.replace(REG_IMG, "$1"); - } + }*/ //end of remove return shouldFixTrailingHashtag ? header + "\n#\n" diff --git a/src/dialogs/Messages.ts b/src/dialogs/Messages.ts index 0abaf5f..ac5a33a 100644 --- a/src/dialogs/Messages.ts +++ b/src/dialogs/Messages.ts @@ -17,6 +17,11 @@ I develop this plugin as a hobby, spending my free time doing this. If you find
`, +"2.1.6":` +## Two minor fixes +- Scaling of LaTeX formulas when the formula is changed +- If the back of the note card only contains a block embed ${String.fromCharCode(96)}![[embed]]${String.fromCharCode(96)} this got removed when saving the Excalidraw file. This issue has been present since November, 2021 (v1.4.9). +`, "2.1.5":` ## New - Save "Snap to objects" with the scene state. If this is the only change you make to the scene, force save it using CTRL+S (note, use CTRL on Mac as well). diff --git a/src/utils/Utils.ts b/src/utils/Utils.ts index a297a64..6aad4ae 100644 --- a/src/utils/Utils.ts +++ b/src/utils/Utils.ts @@ -452,7 +452,7 @@ export const scaleLoadedImage = ( for (const f of files.filter((f:any)=>{ if(!Boolean(EXCALIDRAW_PLUGIN)) return true; //this should never happen const ef = EXCALIDRAW_PLUGIN.filesMaster.get(f.id); - if(!ef) return false; + if(!ef) return true; //mermaid SVG or equation const file = EXCALIDRAW_PLUGIN.app.vault.getAbstractFileByPath(ef.path.replace(/#.*$/,"").replace(/\|.*$/,"")); if(!file || (file instanceof TFolder)) return false; return (file as TFile).extension==="md" || EXCALIDRAW_PLUGIN.isExcalidrawFile(file as TFile)