feat: don't add redundant 'height' to images

This commit is contained in:
Johan Fagerberg 2026-02-25 21:50:56 +01:00 committed by Manuel Rüger
parent ec6a718c76
commit 6f18a47ed0
2 changed files with 7 additions and 7 deletions

View File

@ -164,7 +164,7 @@ func (r *ConfluenceFencedCodeBlockRenderer) renderFencedCodeBlock(writer util.Bu
attachment.Width, attachment.Width,
attachment.Height, attachment.Height,
displayWidth, displayWidth,
attachment.Height, "",
attachment.Name, attachment.Name,
"", "",
attachment.Filename, attachment.Filename,
@ -208,7 +208,7 @@ func (r *ConfluenceFencedCodeBlockRenderer) renderFencedCodeBlock(writer util.Bu
attachment.Width, attachment.Width,
attachment.Height, attachment.Height,
displayWidth, displayWidth,
attachment.Height, "",
attachment.Name, attachment.Name,
"", "",
attachment.Filename, attachment.Filename,

View File

@ -170,7 +170,7 @@ func (r *ConfluenceImageRenderer) renderImage(writer util.BufWriter, source []by
attachments[0].Width, attachments[0].Width,
attachments[0].Height, attachments[0].Height,
displayWidth, displayWidth,
attachments[0].Height, "",
string(n.Title), string(n.Title),
string(nodeToHTMLText(n, source)), string(nodeToHTMLText(n, source)),
attachments[0].Filename, attachments[0].Filename,