Switch to folio for document rendering

This commit is contained in:
Milan Nikolic
2026-08-24 15:40:38 +02:00
parent 38cb375a93
commit b8bf8fa9df
18 changed files with 183 additions and 189 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ func isArchive(f string) bool {
// isDocument checks if file is document.
func isDocument(f string) bool {
var types = []string{".pdf", ".xps", ".epub", ".mobi", ".docx", ".pptx", ".xlsx"}
var types = []string{".pdf", ".epub", ".mobi", ".chm", ".fb2", ".docx", ".pptx", ".xlsx"}
for _, t := range types {
if strings.ToLower(filepath.Ext(f)) == t {
return true