From 2d447889316a30e1f461eaf694df2f53b04adfdf Mon Sep 17 00:00:00 2001 From: Safi Date: Thu, 7 May 2026 11:02:11 +0100 Subject: [PATCH] add .qmd to to_obsidian_canvas safe_name regex --- graphify/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphify/export.py b/graphify/export.py index 7121a2c6..3599f6d0 100644 --- a/graphify/export.py +++ b/graphify/export.py @@ -884,7 +884,7 @@ def to_canvas( def safe_name(label: str) -> str: cleaned = re.sub(r'[\\/*?:"<>|#^[\]]', "", label.replace("\r\n", " ").replace("\r", " ").replace("\n", " ")).strip() - cleaned = re.sub(r"\.(md|mdx|markdown)$", "", cleaned, flags=re.IGNORECASE) + cleaned = re.sub(r"\.(md|mdx|qmd|markdown)$", "", cleaned, flags=re.IGNORECASE) return cleaned or "unnamed" # Build node_filenames if not provided (same dedup logic as to_obsidian)