(path: &str, prefix: &str)
| 23 | } |
| 24 | |
| 25 | fn stem(path: &str, prefix: &str) -> String { |
| 26 | path.strip_prefix(prefix) |
| 27 | .unwrap_or(path) |
| 28 | .strip_suffix(".md") |
| 29 | .unwrap_or(path.strip_prefix(prefix).unwrap_or(path)) |
| 30 | .to_owned() |
| 31 | } |
| 32 | |
| 33 | impl VaultProjection { |
| 34 | pub(super) fn new( |