Comment on @ Hubzilla Support Forum You should be able to use: [zmg width="850" h
pup@hub.hubzilla.de 4 days ago
@Harald Eilertsen
Thank you for the suggestion. Unfortunately it does not work correctly in the current version of Hubzilla. The syntax:
produces the following incorrect alt text in the HTML output:
alt="="850" height="480" alt="My alt text""
And the following incorrect attachment.name field:
"name": "h=\"850\" height=\"480\" alt=\"My alt text\""
It seems like the parser does not correctly handle the width= and height= parameters in the [zmg] tag, and instead includes the entire parameter string in both the alt attribute and the attachment.name field.
Thank you for the suggestion. Unfortunately it does not work correctly in the current version of Hubzilla. The syntax:
[zmg width="850" height="480" alt="My alt text"]https://example.com/photo.jpg[/zmg]produces the following incorrect alt text in the HTML output:
alt="="850" height="480" alt="My alt text""
And the following incorrect attachment.name field:
"name": "h=\"850\" height=\"480\" alt=\"My alt text\""
It seems like the parser does not correctly handle the width= and height= parameters in the [zmg] tag, and instead includes the entire parameter string in both the alt attribute and the attachment.name field.
Attachment: example.com ↗
#^https://framagit.org/hubzilla/core/-/merge_requests/2301
HTML works correctly with single quotes, but still issues with attachment.name