PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
647 stars 29 forks source link

I can‘t add citations form zotero. detail as following. #272

Open niecailong opened 9 months ago

niecailong commented 9 months ago

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'renderColored') at Object.replacement (plugin:zotlit:359:37593) at k.D (turndown.js:2:9551) at turndown.js:2:9210 at NodeList.reduce () at k.b (turndown.js:2:9059) at k.D (turndown.js:2:9459) at turndown.js:2:9210 at NodeList.reduce () at k.b (turndown.js:2:9059) at k.D (turndown.js:2:9459) at turndown.js:2:9210 at NodeList.reduce () at k.b (turndown.js:2:9059) at k.D (turndown.js:2:9459) at turndown.js:2:9210 at NodeList.reduce () at k.b (turndown.js:2:9059) at k.D (turndown.js:2:9459) at turndown.js:2:9210 at NodeList.reduce () at k.b (turndown.js:2:9059) at k.turndown (turndown.js:2:10070) at ud.turndown (plugin:zotlit:359:40322) at ud.normalizeNotes (plugin:zotlit:359:40201) at eval (plugin:zotlit:351:953) at async Qf (plugin:zotlit:351:891) at async ib (plugin:zotlit:351:2337)

xiaojun678 commented 9 months ago

yes, i have the same problem

niecailong commented 9 months ago

I found this reseson of problem. as fllowlling image

A citation can not be created due to the presence of the note in project。

impermanD commented 9 months ago

控制中显示 同样的报错,在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因。

niecailong commented 9 months ago

控制中显示 同样的报错,在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因。

不太懂你的意思,我的标注文档中没有使用带颜色字体和荧光标记。但仍旧报这个错误

niecailong commented 9 months ago

控制中显示 同样的报错,在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因。

主要是,我没有找到颜色清理的选项在哪里。

niecailong commented 9 months ago

控制中显示 同样的报错,在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因。

主要是,我没有找到颜色清理的选项在哪里。

我现在对标注中所有文字去格式化后完成了同步。

SimonJarry commented 9 months ago

在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因

请问是清理哪个颜色?

SimonJarry commented 9 months ago

在zotero中把标注文档中的颜色清理后就可用了,不知道什么原因

请问是清理哪个颜色?

已经找到解决办法。把zotero笔记附件里的文字(除级别标题外),全部选中并清除格式,再利用插件则可以生成笔记。

DennisFriedl commented 8 months ago

I have the same problem, It doesn't happen when I just annotate with the standard yellow color. The fix of deformating isn't really a fix for me because I want to keep the colors.

SimonJarry commented 8 months ago

我有同样的问题,当我只是用标准的黄色注释时,它不会发生。格式化的修复对我来说并不是真正的修复,因为我想保留颜色。

Hello, when I say notes, I mean the notes under the attachments to the articles. The fields in the template correspond to < it-notes >. At present, the note can be correctly generated only by clearing the content style. If you want to keep the colors, refer to the note template in the other questions.

appwcn commented 4 months ago

same issue here. 打开笔记源代码,把<span>字段全部删除,可以导入了。

论坛里几个贴子都同一问题。

希望大佬修复一下啊!笔记中确实很多颜色信息,不想删掉…

Postroggy commented 1 month ago

@appwcn 想问一下,怎么打开笔记的源代码呀?note不是存储在 sqlite 里面吗?没看到入口