From 6e6d57e346cd4fd4b529606146d4069c02d8c9a5 Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Tue, 2 Apr 2024 11:53:49 +0200 Subject: [PATCH] fix: suffix files with `.md` (#129) --- memorymarker/persist_questions/markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memorymarker/persist_questions/markdown.py b/memorymarker/persist_questions/markdown.py index 91c714b..b67f0f1 100644 --- a/memorymarker/persist_questions/markdown.py +++ b/memorymarker/persist_questions/markdown.py @@ -18,7 +18,7 @@ def clean_filename(filename: str) -> str: def highlight_group_to_file( output_dir: "Path", group: tuple[str, Sequence["ReasonedHighlight"]] ) -> None: - save_path = output_dir / clean_filename(group[0]) + save_path = output_dir / f"{clean_filename(group[0])}.md" with save_path.open(mode="a") as f: for highlight in group[1]: