mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-08-12 19:09:02 +08:00
feat: support markdown files (#483)
parse markdown files as txt ### What problem does this PR solve? support markdown files ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
b8e58fe27a
commit
11949f9f2e
@ -137,7 +137,7 @@ def chunk(filename, binary=None, from_page=0, to_page=100000,
|
||||
excel_parser = ExcelParser()
|
||||
sections = [(excel_parser.html(binary), "")]
|
||||
|
||||
elif re.search(r"\.txt$", filename, re.IGNORECASE):
|
||||
elif re.search(r"\.(txt|md)$", filename, re.IGNORECASE):
|
||||
callback(0.1, "Start to parse.")
|
||||
txt = ""
|
||||
if binary:
|
||||
|
Loading…
x
Reference in New Issue
Block a user