mirror of
https://github.com/elyby/emails-renderer.git
synced 2025-05-31 14:12:05 +05:30
Resolves #1. Add styles for images alt texts
This commit is contained in:
@@ -46,7 +46,7 @@ module.exports = async function(content) {
|
||||
const targetWidth = Math.ceil(width / scale);
|
||||
const targetHeight = Math.ceil(height / scale);
|
||||
|
||||
resolve(`<img src="${src}" alt="${text}" width="${targetWidth}" height="${targetHeight}" style="vertical-align: middle" />`);
|
||||
resolve(`<img src="${src}" alt="${text}" width="${targetWidth}" height="${targetHeight}" style="font-size: ${size}px; color: ${color}; vertical-align: middle" />`);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user