flashcards-obsidian icon indicating copy to clipboard operation
flashcards-obsidian copied to clipboard

Mdlink is not parsing image correctly

Open glitchlover opened this issue 3 years ago • 5 comments

The issue first arrived here

https://github.com/reuseman/flashcards-obsidian/issues/150#issue-1418692695

after researching, I found extra "25" number after "%" in anki flashcard's souce code src="Pasted%2520image%252020221024224835.png" image

if I remove the extra 25 it gets correct Pasted%20image%2020221024224835.png image

glitchlover avatar Oct 24 '22 16:10 glitchlover

So if you paste an image in Obsidian there is an extra "25"? Or is it a problem of the plugin?

reuseman avatar Oct 25 '22 13:10 reuseman

@reuseman no, it has nothing to do with obsidian. I am seeing this problem after parsing card to anki. Moreover, I am seeing more cases of broken image today. It will take time to organize the cases in where these things happen. I will update data soon.

glitchlover avatar Oct 25 '22 17:10 glitchlover

@glitchlover nice. By the way, me and especially @ivyraine are trying to rewrite the plugin (#151). But there is even the need to add tests (#152) that keeps track of the old issues and the new issues. We still need to figure out how to structure everything, and the development is going on over the "ohm" branch. Still, it would be nice to have this cases as tests over there. Like I said, it's not structured at all, but if you have any idea, feel free to discuss it and open pull requests.

reuseman avatar Oct 25 '22 21:10 reuseman

Hello @glitchlover, what is mdlink ? I reproduce the issue but without same "25" added. Instead in my side, the slash is replace in anki source by a %2F, but when I go throw the anki media folder : C:\Users\xxx\AppData\Roaming\Anki2\Utilisateur 1\collection.media\ the media exist without the folder name and slash.

Probably different issue between OS, used characters.

wawa-dan avatar Nov 18 '22 16:11 wawa-dan

Nb : can't we continue directly in the issue 150 and stop the 153? quite confusing to have 2

wawa-dan avatar Nov 18 '22 16:11 wawa-dan