",
+ escape_html_attr(context.post_id.as_deref().unwrap_or_default()),
);
for image in images {
let Some(path) = image_path(&image) else {
continue;
};
let title = image_title(&image);
- let alt = image_alt(&image, title.as_deref());
+ let alt = image_alt(&image);
html.push_str(&format!(
"

",
escape_html_attr(&path),
- escape_html_attr(gallery_id),
+ escape_html_attr(&gallery_id),
title
.as_deref()
.map(|value| format!(" data-title=\"{}\"", escape_html_attr(value)))
@@ -232,11 +234,22 @@ fn render_gallery(args: &HashMap
, context: &MacroRenderContex
escape_html_attr(&alt),
));
}
- html.push_str("