akosbalasko / yarle

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

tags rendered as #//// #////// #// #376

Closed filmgal closed 2 years ago

filmgal commented 2 years ago

Yarle worked fine for me in February, but I had to reinstall today and now all of my tags get rendered as follows:

image

The only "tag" option I have enabled is "Add # to tag". Some of my Evernote tags have "."s in them, i.e, p.this or p.that, but most do not. My first attempt was to enable the conversion of "." to "/" and got the tags looking like the picture, so I disabled that option and got the same result. I uninstalled and re-installed, and still the same.

github-actions[bot] commented 2 years ago

Yihaa, thank you for reporting me this issue and to let me improve Yarle!

akosbalasko commented 2 years ago

Hi @filmgal , Does it happens with the same enex file which was processed well in February? It's pretty strange, because I checked the changes and there were no changes around tags-generation. Could you please provide an example enex on what Yarle produces these //// characters?

Thanks a lot!

filmgal commented 2 years ago

Hi @akosbalasko Pretty sure the tags were fine in Feb. I'd show you an example but I lost my hard drive - hence repeating the Evernote exports! Here's a small test file with just 3 files, to give you an idea. One is the enex, the other is the md file resulting from the yarle conversion. testenex.zip test md files.zip

filmgal commented 2 years ago

Perhaps it has something to do with the tags, in that some of them have "." separators (e.g., flare.settings) and some have hyphens ("flare-settings").

akosbalasko commented 2 years ago

Hi @filmgal, thanks for the examples and for the hints, i'm on it.

akosbalasko commented 2 years ago

Hi @filmgal , I was able to reproduce the problem, but only if I add '.' to the "Separator of the nested tag in EN" field, and '/' to its replacement. The tricky point is that I replace the characters by a regular expression in where the "." character is a joker character to mean anything, thats why all characters of the tag values were replaced by / sign. To escape this, please type "." instead of ".", and it will work. I know, it's a workaround, but at least your notes will be converted until I find the correct solution. Here I attached how I set my nested tags-part:

Screenshot 2022-05-04 at 21 50 14
filmgal commented 2 years ago

Hi @akosbalasko Thank you SO much for the workaround! It works like a charm.
You're the best.

akosbalasko commented 2 years ago

Hi @filmgal , Cool, I'm glad that it works! I'd keep this issue open until I provide a proper solution, just to escape regexp-related fields automatically.

akosbalasko commented 2 years ago

Hi @filmgal , Just fyi I released the fix in version 4.9.13, so I close this issue.