mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-08 05:39:13 +00:00
Entries with no md headings should not get heading prefix prepended
Files with no headings would previously get their entry be prefixed with a markdown heading prefix (#)
This commit is contained in:
@@ -27,6 +27,8 @@ def test_markdown_file_with_no_headings_to_jsonl(tmp_path):
|
||||
|
||||
# Assert
|
||||
assert len(jsonl_data) == 1
|
||||
# Ensure entries with no headings do not get heading prefix prepended
|
||||
assert not jsonl_data[0]["compiled"].startswith("#") and not jsonl_data[0]["raw"].startswith("#")
|
||||
|
||||
|
||||
def test_single_markdown_entry_to_jsonl(tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user