Add EPUB import for data bank

This commit is contained in:
Cohee
2024-04-20 01:24:46 +03:00
parent 3ff5884112
commit 78d1d48ea9
6 changed files with 68 additions and 4 deletions

View File

@ -27,6 +27,7 @@ import {
extractTextFromHTML,
extractTextFromMarkdown,
extractTextFromPDF,
extractTextFromEpub,
getBase64Async,
getStringHash,
humanFileSize,
@ -56,6 +57,7 @@ const converters = {
'application/pdf': extractTextFromPDF,
'text/html': extractTextFromHTML,
'text/markdown': extractTextFromMarkdown,
'application/epub+zip': extractTextFromEpub,
};
/**