Commit 738727d

benny-dou <60535774+benny-dou@users.noreply.github.com>
2026-05-27 02:10:56
feat(ai): support epub files in markdown conversion
1 parent a1eb677
Changed files (1)
src
ai
src/ai/texts/contexts.py
@@ -29,7 +29,7 @@ if TYPE_CHECKING:
     from io import BytesIO
 
 TXT_EXT = [".sh", ".json", ".xml", ".tex"]  # treat these as txt file
-MARKDOWN_EXT = [".pdf", ".html", ".docx", ".pptx", ".xls", ".xlsx"]  # convert to markdown
+MARKDOWN_EXT = [".pdf", ".html", ".docx", ".pptx", ".xls", ".xlsx", ".epub"]  # convert to markdown
 # gemini has built-in support for these extensions
 GEMINI_EXT = [".pdf", ".html", ".css", ".csv", ".xml", ".rtf", ".mp3", ".wav", ".ogg", ".aac", ".flac", ".jpg", ".jpeg", ".webp", ".png", ".heic", ".heif"]
 # gemini has built-in support for these mime types