`memory/architecture.md` -> `memory:architecture`.
(project: &ProjectId, path: &str)
| 233 | |
| 234 | /// `memory/architecture.md` -> `memory:architecture`. |
| 235 | fn memory_path_to_node_id(project: &ProjectId, path: &str) -> Option<String> { |
| 236 | let name = path.strip_prefix("memory/")?.strip_suffix(".md")?; |
| 237 | if name.is_empty() { |
| 238 | return None; |
| 239 | } |
| 240 | Some(iri::mint_memory(project, name)) |
| 241 | } |
| 242 | |
| 243 | // Frontmatter helpers (the stored entries carry JSON-object strings). |
| 244 |
no test coverage detected