iamjackg / md2cf

Convert and upload Markdown documents to Confluence
MIT License
91 stars 49 forks source link

Images displayed with a width of less than 400px #105

Open xorxsan opened 11 months ago

xorxsan commented 11 months ago

Hi,

we have a markdown that contains the following piece of code:

![title](my-image.drawio.svg)

It gets correctly uploaded, but it's displayed with a very narrow width (less than 400px). Same happens if we use a png file (size is almost 900px).

Is there a way to instruct Confluence to use a greater width?

We are using version 2.3.0 of md2cf.

iamjackg commented 10 months ago

Oh interesting. I don't think I tested this with large images. There is a way to instruct confluence to do that, but md2cf doesn't set any of those attributes. Something to look into!

daveiit commented 2 months ago

I'm also really interessted. with the tip from #88, to convert inline mermaid with mmdc to svg uplload to confluence works fine but i can only see the images when i go to confluence and edit them to a lower scale. But they are visible in the edit page view :)

would be awesome if i dont have to do that manually and just set a image scale parameter or something like that