Praxxian / lava-flow

A Foundry VTT module that allows you to import your notes from Obsidian MD into Foundry journal entries.
MIT License
67 stars 10 forks source link

Images with spaces don't work #22

Closed Sinled closed 1 year ago

Sinled commented 1 year ago

Hi, thanks for great addon

It seems if you have images with spaces they are not processed correctly, such images displayed as simple text

Screenshot 2023-01-02 at 19 40 47

also, is there any chances of implementing custom width for images?

Praxxian commented 1 year ago

I think the issue might be with the alt text format. It is only matching images on ![[path/to/img.png]].

Foundry uses showdown for markdown-to-html, and it does support custom image widths, but I am not sure if they let you set the dimensions using the width only like Obsidian does. I'll look into it!

Praxxian commented 1 year ago

Oh it looks like the space is also a problem. Might be something with showdown. Now I've found two issues!

Sinled commented 1 year ago

but I am not sure if they let you set the dimensions using the width only like Obsidian does

just checked, if you edit imported file, and add =200x* to file path, it will render image with corresponding width value on image

### Resized
![obsidian_banner.png](assets/cos/uploads/obsidian_banner.png =200x*)
Praxxian commented 1 year ago

If you update to the latest version 2.1.0 (not to be confused with 2.0.1) this should be resolved. Added in support for resizing images, too!