iamjackg / md2cf

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

Set a default width for rendering images so they don't get raw wdith #119

Open bjorns opened 9 months ago

bjorns commented 9 months ago

This PR depends on https://github.com/iamjackg/md2cf/pull/120

Currently images are rendered in default resolution when we push them to Confluence. For retina style screenshots for example this ends up unreadable in the final page. Here's an example:

Screenshot 2023-11-21 at 10 56 40

This PR sets the correct namespace and a default width for all uploaded images equal to the 764px width of the confluence page text. The end result is a correctly scaled screenshot like in this example:

Screenshot 2023-11-21 at 10 57 09