diff --git a/lib/Commands.ts b/lib/Commands.ts index 6011ded..ef2017f 100644 --- a/lib/Commands.ts +++ b/lib/Commands.ts @@ -144,7 +144,7 @@ export default class Commands { let content = block.content; - if (block.class === "Image") { + if (block.class === "Image" || block.class === "Link") { const imageUrl = block.image?.display.url; content = `![](${imageUrl})`; } @@ -202,7 +202,7 @@ export default class Commands { const title = block.generated_title; let content = block.content; - if (block.class === "Image") { + if (block.class === "Image" || block.class === "Link") { const imageUrl = block.image?.display.url; content = `![](${imageUrl})`; } @@ -246,7 +246,6 @@ export default class Commands { async getBlockFromArena() { const onSelectChannel = async (channel: Channel) => { const onSelectBlock = async (block: Block, channel: Channel) => { - console.log(block); const fileName = `${block.generated_title}`; const frontData = Utils.getFrontmatterFromBlock( block, @@ -256,7 +255,7 @@ export default class Commands { let content = block.content; - if (block.class === "Image") { + if (block.class === "Image" || block.class === "Link") { const imageUrl = block.image?.display.url; content = `![](${imageUrl})`; } diff --git a/manifest.json b/manifest.json index a56ec5f..98a692d 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "arena-manager", "name": "Are.na Manager", - "version": "1.0.1", + "version": "1.0.2", "minAppVersion": "1.6.4", "description": "Publish content from your vault to Are.na and the other way around.", "author": "Javier Arce",