Исправления багов

This commit is contained in:
Book Pauk
2020-12-19 02:47:06 +07:00
parent de0d10e792
commit 0b63bce357
2 changed files with 13 additions and 3 deletions

View File

@@ -82,8 +82,10 @@ class ConvertJpegPng extends ConvertBase {
binary.push(img);
const attrs = {'l:href': `#${image.name}`};
if (image.alt)
if (image.alt) {
image.alt = (image.alt.length > 256 ? image.alt.substring(0, 256) : image.alt);
attrs.alt = image.alt;
}
pars.push({_n: 'p', _t: ''});
pars.push({_n: 'image', _attrs: attrs});