fix: Markdown & Text files as default support.

This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-07-07 22:55:51 -07:00
parent a1742f26de
commit 21fb231683
2 changed files with 4 additions and 5 deletions

View file

@ -138,8 +138,8 @@ async def process_file_in_background(
session: AsyncSession
):
try:
# Check if the file is a markdown file
if filename.lower().endswith(('.md', '.markdown')):
# Check if the file is a markdown or text file
if filename.lower().endswith(('.md', '.markdown', '.txt')):
# For markdown files, read the content directly
with open(file_path, 'r', encoding='utf-8') as f:
markdown_content = f.read()