This commit is contained in:
Zsolt Viczian
2022-08-04 20:16:58 +02:00
parent cc9d7828c7
commit e7444f5d8a
7 changed files with 18 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
{
"id": "obsidian-excalidraw-plugin",
"name": "Excalidraw",
"version": "1.7.10",
"version": "1.7.11",
"minAppVersion": "0.15.7",
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
"author": "Zsolt Viczian",

View File

@@ -18,7 +18,7 @@
"license": "MIT",
"dependencies": {
"@types/lz-string": "^1.3.34",
"@zsviczian/excalidraw": "0.12.0-obsidian-3",
"@zsviczian/excalidraw": "0.12.0-obsidian-4",
"clsx": "^1.1.1",
"lz-string": "^1.4.4",
"monkey-around": "^2.3.0",

View File

@@ -518,12 +518,13 @@ export class EmbeddedFilesLoader {
for(let i=0;i<internalEmbeds.length;i++) {
const el = internalEmbeds[i];
const src = el.getAttribute("src");
if(!src) return;
if(!src) continue;
const width = el.getAttribute("width");
const height = el.getAttribute("height");
const f = app.metadataCache.getFirstLinkpathDest(src,file.path);
if(!f) return;
const embeddedFile = await this.getObsidianImage(f,1);
const ef = new EmbeddedFile(plugin,file.path,src);
//const f = app.metadataCache.getFirstLinkpathDest(src.split("#")[0],file.path);
if(!ef.file) continue;
const embeddedFile = await this.getObsidianImage(ef,1);
const img = createEl("img");
if(width) img.setAttribute("width", width);
if(height) img.setAttribute("height", height);

View File

@@ -17,6 +17,11 @@ I develop this plugin as a hobby, spending most of my free time doing this. If y
<div class="ex-coffee-div"><a href="https://ko-fi.com/zsolt"><img src="https://cdn.ko-fi.com/cdn/kofi3.png?v=3" height=45></a></div>
`,
"1.7.11": `
# Fixed
- Markdown files embed into the Excalidraw canvas crashed when the embedded markdown file included a nested Markdown embed with a block reference (i.e. the markdown document you are dropping into Excalidraw included a quote you referenced from another file using a ${String.fromCharCode(96)}[[other-file#^blockref]]${String.fromCharCode(96)} block or section reference.
- Horizontal flipping of arrows and lines broke in 1.7.10. ([#726](https://github.com/zsviczian/obsidian-excalidraw-plugin/issues/726))
`,
"1.7.10": `
# New from Excalidraw.com
- Improved handling of arrows and lines. ([#5501](https://github.com/excalidraw/excalidraw/pull/5501))

View File

@@ -581,7 +581,7 @@ export class ExcalidrawSettingTab extends PluginSettingTab {
);
new Setting(containerEl)
.setName(t("LINK_BRACKETS_NAME"))
.setName(fragWithHTML(t("LINK_BRACKETS_NAME")))
.setDesc(fragWithHTML(t("LINK_BRACKETS_DESC")))
.addToggle((toggle) =>
toggle

View File

@@ -1,5 +1,5 @@
{
"1.7.10": "0.15.7",
"1.7.11": "0.15.6",
"1.7.8": "0.15.5",
"1.7.7": "0.15.4",
"1.7.6": "0.15.3",

View File

@@ -2216,10 +2216,10 @@
dependencies:
"@zerollup/ts-helpers" "^1.7.18"
"@zsviczian/excalidraw@0.12.0-obsidian-3":
"integrity" "sha512-9rTc6BXIc3K6eWCtMNSXLoeDrVAvMkEbTuqL0NhZbbmV7y/FTWIgMvb1RR3v4nTHwGlXba7rP6khR5m/WJMS6w=="
"resolved" "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.12.0-obsidian-3.tgz"
"version" "0.12.0-obsidian-3"
"@zsviczian/excalidraw@0.12.0-obsidian-4":
"integrity" "sha512-x16SkkNewR+Mbfn0mULjLDMfvxJ4iXBtwO2T1PWajNcn2QwHnByn4KTFUsuTD0PfQ/ZTgTLeLUztpAZ8cted1w=="
"resolved" "https://registry.npmjs.org/@zsviczian/excalidraw/-/excalidraw-0.12.0-obsidian-4.tgz"
"version" "0.12.0-obsidian-4"
"abab@^2.0.3", "abab@^2.0.5":
"integrity" "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q=="