New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
item links broken in markdown export #35
Comments
|
So weird. This should not happen, for the code for generating this link is exactly the same as Zotero's official note2markdown code. May I ask how did you get the right version? |
Thanks. |
I compared the code of Zotero integration for obsidian, finding out that there does exist a difference when processing annotation links. Better Notes follows the standard Zotero way, which means this might be a Zotero bug, or your annotation data is modified by some addons in a somehow non-standard way. You can try to export the note with Zotero's built-in note exporting function and see if it is broken. As for the page, again, the int4ob uses Here is the new version. Please download, unzip, and try and see if the bug is fixed. |
I used zotero's export function(Right-click on the main note, select export note >choose markdown) and it was Ok. and exported md file has valid links and links are not broken. For page number I think your addon does right and has no problem. |
Please try this and paste debug output here: |
Sorry for my late reply. I was just busy fixing bugs in the 0.5.x update. Is this bug still exist? |
Unfortunately I still have that problem.(zotero://select/library/items/items) |
@Sleepwalker6 |
Thanks, I will try that with other addons disabled and also with another computer . I'll send the results here. Thank you |
Please try the debug steps:
var container = Zotero.Knowledge4Zotero.knowledge.parseNoteHTML();
var nodes = container.querySelectorAll(
'span[class="highlight"], img[data-annotation]'
);
var annotation = JSON.parse(
decodeURIComponent(nodes[0].getAttribute("data-annotation"))
);
let uri = annotation.attachmentURI || annotation.uri;
uri |
I created new item in zotero, new pdf, new highlights, new main note. I ran the java code and I got the result: The image bellow can explain the difference between the two exported markdown files(zoter's and addon's exported md file)
|
So weird. The item link inside Zo is correct.
There should be item links like:
|
Seem like this only happens to you and I still don't know what's going on with your export. Using remote connection/control software would be more efficient to solve the problem if possible. |
Today I installed zotero (6.0.9) and the addon(0.5.17) on a new brand windows 10. (no other addon is installed) |
Could you please show me the debug output? |
Hi, I just made some fixes to the bugs with the export & quick note function. |
Hi Thanks, 5.18 didnt fix the item link. |
Sorry to hear that. However, this also means we might be close to the true cause of the bug.
Thanks a lot! |
After checking that on 2 pcs:
|
No hurry. You can also email me the debug file: wyzlshx@foxmail.com |
Do you have any ideas on what might be the problem? Can't you reproduce the current problem especially with 5.20 which the problem might seems even worse. |
The v0.5.19 & 20 fix the bugs below:
These fixes are related to #68. However, in the case that your links are broken, the new code of image link parsing may be the cause of the blank export bug. |
Hi @windingwind .
|
Hi, fixing this bug is planned as always. I am waiting for the debug output😳 Please send me the output when you have the blank file exported? |
Any updates? |
just sent a debug file. |
Thanks. I've emailed you a new version of this plugin. |
Any updates? |
Hi,I haven't thoroughly tested the new unpdate, but it seems that:- the empty file problem is resolved.- the item/item problem is still exist.
On Friday, July 29, 2022 at 09:04:09 AM GMT+4:30, windingwind ***@***.***> wrote:
Any updates?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
One question:While exporting [!note] (which is callout format in obsidian) special characters have `\` before them (pic1). Is there a way to avoid that and have pic2.Thanks
On Friday, July 29, 2022 at 10:42:00 PM GMT+4:30, Sajadinia, Hosein ***@***.***> wrote:
Hi,I haven't thoroughly tested the new unpdate, but it seems that:- the empty file problem is resolved.- the item/item problem is still exist.
On Friday, July 29, 2022 at 09:04:09 AM GMT+4:30, windingwind ***@***.***> wrote:
Any updates?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
glad to know the blank file bug is fixed. I’ll install a new Zotero using local library recently to see what’s happening to the links. about the [] conversion: should I just disable this conversion rule([]=>[]), or just disable it for the [!note] case? |
Thanks.[!note] is just an example and there are different callout style.Having the option to disable it on [ and ] would be great.
On Saturday, July 30, 2022 at 06:12:10 AM GMT+4:30, windingwind ***@***.***> wrote:
glad to know the blank file bug is fixed. I’ll install a new Zotero using local library recently to see what’s happening to the links.
about the [] conversion: should I just disable this conversion rule([]=>[]), or just disable it for the [!note] case?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
I just tested on my new Zotero environment and everything seems to be OK now. Could you please try the latest version? I guess the images are correctly exported now. Please also check #75 . Thanks for the patience! |
The [] conversion is supported in the latest release |
I am on widows 7 OS.
Thanks for the great addon.
The text was updated successfully, but these errors were encountered: