@Hubzilla Support Forum You should be able to use:
The article addon should probably be updated to use the new format.
[zmg width="850" height="480" alt="My alt text"]https://example.com/photo.jpg[/zmg]The article addon should probably be updated to use the new format.
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.
#^https://framagit.org/hubzilla/core/-/merge_requests/2301
HTML works correctly with single quotes, but still issues with attachment.name