md2cf icon indicating copy to clipboard operation
md2cf copied to clipboard

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

Open bjorns opened this issue 2 years ago • 0 comments

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

bjorns avatar Nov 21 '23 15:11 bjorns