Hi @akos0215, I’m glad my feedback is useful and hope this one gives you more data to work with and get Yarle to a new level.
I did a quick test a few minutes ago (on a Windows machine), after updating yarle to the lastest version.
Executing yarle
I’ve noticed that change and tried to go with that alternative using this configuration
{
"enexSource": "./test.enex",
"templateFile": "./evernote.tmpl",
"outputDir": "./md_yarle",
...
}
but it keeps trying to find the template inside ‘yarle-evernote-to-md’ folder.
C:\yarle\>npx -p yarle-evernote-to-md yarle --configFile test.json
Loading config from C:\yarle/test.json
Converting notes in file: ./test.enex
Converting note Evernote - Converting to Markdown...
Failed to convert note: Evernote - Converting to Markdown Error: ENOENT: no such file or directory,
open 'C:\Users\User\AppData\Roaming\npm-cache\_npx\4160\node_modules\yarle-evernote-to-md\dist/.././evernote.tmpl'
I temporarily fixed that, copying the template file where yarle is trying to find it.
Escaping characters
I do understand that characters like hash, square brackets, underscore or asterisk need to be escaped because they have special meaning inside md files. But I find it unneccesary in certain cases, and sometimes it breaks the content (I cannot copy a escaped url and use it directly on a browser, or copy & execute the sql code on a client)
- Example: Url with underscores
https://www.reddit.com/r/Evernote/comments/j87fb9/please_help_me_find_the_evernote_alternative/
is converted to
[https://www.reddit.com/r/Evernote/comments/j87fb9/please\_help\_me\_find\_the\_evernote\_alternative/](https://www.reddit.com/r/Evernote/comments/j87fb9/please_help_me_find_the_evernote_alternative/)
- Example: sql inside codeblock with underscores
# SQL comment
select * from note_attr set sync_required = 1, date_updated=now();
is converted to
\# SQL comment
select \* from note\_attr set sync\_required = 1, date\_updated=now();
- Example: javascript inside codeblock with square brackets
tinyMCE.execCommand('mceCodeEditor',false, tinymce.editors[1].id);
is converted to
tinyMCE.execCommand('mceCodeEditor',false, tinymce.editors\[1\].id);
Storing attachments
You are right. Maybe it’s not a con for everyone. Even though the conversion is done correctly, I find some difficulties when trying to keep improving my notes:
1 . When I need to add more attachments to a converted md file, I try to be consistent. So, new files should go into the specific folder created for that md file, and the md editors I tested don’t handle that well automatically - Obsidian has an option (Attachment folder path) that lets you configure a single location for that.
2. When I rename the md file, that associated folder will retain the original name. Obsidian handles well renaming linked md files and attachments, not this attachment folders.
3. If I ever need to link an existing attachment in another md file (not the original one), I will have to move it outside this folder, just to be consistent, and manually adjust links in the original md file.
Thaks for all your hard work!