c3er/mdview

Embedded base64 encoded image not supported?

xCaradhras opened this issue · 4 comments

Hello,

I tried to use this tool with embedded image. On other tools/viewers it works, but not here. :/

Am I doing something wrong?
Sample code: bla.md

Could you look into this?
Best regards

c3er commented

Thanks for filing this issue!

After a very quick look, I don't see anything "wrong" with this file. Embedding images as data string was not considered as use case yet. Probably the tool messes something up while trying to render it or a step is missing before the image can be rendered.

I will take a deeper look.

Thanks! I would love to offer my support, but my JS skills are practically non-existent. 😅 If I can help in any other way, feel free.

c3er commented

I just released version 2.5.1 that can now render embedded images.

The tool actually messed up the data URL. Preventing the tool from messing up this URL was enough to fix the bug.

Don't hesitate to file another issue, if you find some other bug or weird behavior or if you wish a feature!

Thanks for adressing this issue so quickly 😊