Дополнительно отображаем тип файла в списке изображений

This commit is contained in:
Book Pauk
2020-12-15 20:17:21 +07:00
parent 3eb3dd371a
commit e48af7ee7d
2 changed files with 30 additions and 6 deletions

View File

@@ -211,7 +211,7 @@ export default class BookParser {
newParagraph(`<image href="${href}">${' '.repeat(maxImageLineCount)}</image>`, maxImageLineCount);
imageIndex++;
this.images.push({paraIndex, num: imageIndex});
this.images.push({paraIndex, num: imageIndex, href});
if (inPara && this.showInlineImagesInCenter)
newParagraph(' ', 1);
@@ -220,7 +220,7 @@ export default class BookParser {
newParagraph(`<image href="${href}">${' '.repeat(maxImageLineCount)}</image>`, maxImageLineCount);
imageIndex++;
this.images.push({paraIndex, num: imageIndex});
this.images.push({paraIndex, num: imageIndex, href});
}
}
}