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:
Debanjum Singh Solanky
2023-05-03 18:18:48 +08:00
parent 45a991d75c
commit 0e3fb59e09
2 changed files with 8 additions and 4 deletions

View File

@@ -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):