akosbalasko / yarle

Yarle - The ultimate converter of Evernote notes to Markdown
https://github.com/akosbalasko/yarle
MIT License
1.42k stars 82 forks source link

attachement links unfunctional #163

Closed tokeriis closed 3 years ago

tokeriis commented 3 years ago

Having exported all my notes, it seems links to pdf's and other attachments has reversed link and descriptions.

Shouldn't


[[./_resources/typografiske___grafiske_udtryk.resources/Grafiskefagudtryk.pdf]]

be more like this?:


[[]](./_resources/typografiske___grafiske_udtryk.resources/Grafiskefagudtryk.pdf)

Also, I think attachment should be put in one folder for each enex file rather than separate sub folders for each note. Or at least an option for this would be nice.

akosbalasko commented 3 years ago

Hi @tokeriis !

[[ ]] brackets are generated because outputFormat is set to ObsidianMD. Please change it to UrlEncodeMDto have the standard md link format, which is []() .

Thank you for the feedback, I copy your feat. request to another issue, here you can track it: https://github.com/akosbalasko/yarle/issues/164

tokeriis commented 3 years ago

the outputFormat was set to StandardMD, as in the documentation. Now I have changed to UrlEncodeMD. its different, but still not usable as a file link:

[[./_resources/Bente_Kristiansen__Om_at_skrive_på_universitetet.resources/Om at skrive på universitetet kap 6 kopi.pdf | Om at skrive på universitetet kap 6 kopi.pdf]]

I have also tried to completely remove the outputformat line from config.json, which creates another funky variation??

[[./_resources/Bente_Kristiansen__Om_at_skrive_på_universitetet.resources/Om at skrive på universitetet kap 6 kopi.pdf]]

It should be:

[Om at skrive på universitetet kap 6 kopi.pdf](./_resources/Bente_Kristiansen__Om_at_skrive_på_universitetet.resources/Om at skrive på universitetet kap 6 kopi.pdf)

In addition I found another problem: Attached applescripts (with .scpt extension) has changed file extension to octet-stream, e.g in this case "safari_export_PDF.scpt" becomes this:

[[./_resources/Akademisk_workflow.resources/safari_export_PDF.1.octet-stream | safari_export_PDF.1.octet-stream]]

akosbalasko commented 3 years ago

Hi @tokeriis , I fixed the mentioned issues, please try again with StandardMD option. Cheers, akos

tokeriis commented 3 years ago

Still not there.

[[./_resources/Bente_Kristiansen__Om_at_skrive_på_universitetet.resources/Om at skrive på universitetet kap 6 kopi.pdf]] I still can't click and open this link in any markdown editor.

and this:

[[./_resources/Akademisk_workflow.resources/Gem læsbar PDF.zip]][[./_resources/Akademisk_workflow.resources/safari_export_PDF.1.bin]]

.zip extension is renamed to a .bin extension.

akosbalasko commented 3 years ago

Ok, then please provide me an example enex file to be able to investigate the issues. Thank you. Here you can send me it attached: akos0215@gmail.com