diff --git a/manifest.json b/manifest.json index d7cedbe..92c276e 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "obsidian-excalidraw-plugin", "name": "Excalidraw", - "version": "1.7.27", + "version": "1.7.29", "minAppVersion": "0.15.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 2ccbeea..4a62a81 100644 --- a/src/ExcalidrawData.ts +++ b/src/ExcalidrawData.ts @@ -655,7 +655,7 @@ export class ExcalidrawData { te, wrapAt ? wrapText( originalText, - getFontString(te.fontSize,te.fontFamily), + getFontString({fontSize: te.fontSize, fontFamily: te.fontFamily}), getMaxContainerWidth(container) ) : originalText, originalText, diff --git a/src/MarkdownPostProcessor.ts b/src/MarkdownPostProcessor.ts index ff1a8d8..4ea8509 100644 --- a/src/MarkdownPostProcessor.ts +++ b/src/MarkdownPostProcessor.ts @@ -79,7 +79,7 @@ const getIMG = async ( withTheme: forceTheme ? true : plugin.settings.exportWithTheme, }; const img = createEl("img"); - let style = `max-width:${imgAttributes.fwidth}px !important; width:100%;`; + let style = `max-width:${imgAttributes.fwidth}px; width:100%;`; //removed !important https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/886 if (imgAttributes.fheight) { style += `height:${imgAttributes.fheight}px;`; } diff --git a/src/dialogs/Messages.ts b/src/dialogs/Messages.ts index 8b6bf15..b262b97 100644 --- a/src/dialogs/Messages.ts +++ b/src/dialogs/Messages.ts @@ -17,6 +17,12 @@ I develop this plugin as a hobby, spending my free time doing this. If you find
`, +"1.7.29":` +- This is a big update that accommodates the **UI redesign** on Excalidraw.com [#5780](https://github.com/excalidraw/excalidraw/pull/5780). The change on the surface may seem superficial, however, I had to tweak a number of things to make it work in Obsidian. I hope I found everything that broke and fixed it, if not, I'll try to fix it quickly... +- This update also comes with changes under the hood that **fix issues with Excalidraw Automate** - paving the way for further scripts, plus some smaller bug fixes. +- I **reworked text wrapping**. In some cases, text wrapping in SVG exports looked different compared to how the text looked in Excalidraw. This should now be fixed. +- If you are using the **Experimental Dynamic Styling** of the Excalidraw Toolbar, then I recommend updating your styling script following base on [this](https://gist.github.com/zsviczian/c7223c5b4af30d5c88a0cae05300305c) +`, "1.7.27":`## New - Import SVG drawing as an Excalidraw object. [#679](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/679)