Skip to content
Snippets Groups Projects
Unverified Commit 11949f9f authored by Shaun's avatar Shaun Committed by GitHub
Browse files

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)
parent b8e58fe2
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment