[h3][b][/zrl]
This produces correct alt text in the HTML output:
<img src="https://example.com/photo/uuid-2.jpg" alt="My alt text" />
And a correct attachment.name field:
"name": "My alt text"
But Hubzilla does not display the image at full field width in its own interface in the Article section.
When a size is used as the Image/photo[/zrl]
But then the alt text in the HTML output becomes "Image/photo" and the attachment.name field is missing entirely.
Is there a syntax that supports both a fixed image width and correct alt text simultaneously, or is this a known limitation?
Thank you!
This produces correct alt text in the HTML output:
<img src="https://example.com/photo/uuid-2.jpg" alt="My alt text" />
And a correct attachment.name field:
"name": "My alt text"
But Hubzilla does not display the image at full field width in its own interface in the Article section.
When a size is used as the Image/photo[/zrl]
But then the alt text in the HTML output becomes "Image/photo" and the attachment.name field is missing entirely.
Is there a syntax that supports both a fixed image width and correct alt text simultaneously, or is this a known limitation?
Thank you!
[zrl=https://klacker.org/photos/tutorial01/image/cd747cd9-3f05-42cd-94cc-91c7368c5a18][zmg width="100" height="200" title="Alt Text"]https://klacker.org/photo/cd747cd9-3f05-42cd-94cc-91c7368c5a18-2.png[/zmg][/zrl]Bild/Foto
[zmg ... alt="a bleak outlook over a nascent moon"]There's a few other attributes supported as well. Here's a complete list:
alt="Alt text"title="A title"width="42"with in px.height="66"height in px.class="myclass otherclass"custom CSS classes.In addition there's a legacy format still supported:
Note that the order of the attributes must be exactly like this in the legacy format. Both the float and alt attributes are optional, but must come in this order if present.
Note also that the
floatattribute is not directly supported in the new format, but can be simulated by setting a CSS class instead.I think we should probably add back the float attribute directly in the new format as well.