diff --git a/src/knowledge.ts b/src/knowledge.ts index d683f2f..cb9f1c6 100644 --- a/src/knowledge.ts +++ b/src/knowledge.ts @@ -596,7 +596,7 @@ class Knowledge extends AddonBase { const lineStart = noteLines[i].slice(0, imageIndex); const imageLine = noteLines[i].slice(imageIndex); const lineEnd = noteLines[i].slice( - imageLine.search(imageBrReg) + imageBrReg.source.length + imageLine.search(imageBrReg) + imageBrReg.source.length + 3 ); const attachmentKeyIndex = imageLine.search(imageKeyReg); @@ -617,8 +617,7 @@ class Knowledge extends AddonBase { // const imageData = await editorInstance._getDataURL( // attachmentItem // ); - // TODO: deal with Zotero parse - newLines.push(`

![](${attachmentURL})

`); + newLines.push(`

!image

`); newLines.push(`${lineStart}${lineEnd}`); continue; }