Resolves #1. Add styles for images alt texts

This commit is contained in:
ErickSkrauch
2020-07-16 15:48:08 +03:00
parent 7a62d608d1
commit fead1b50b2
2 changed files with 3 additions and 3 deletions

View File

@@ -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" />`);
});
});