(path: &Path)
| 362 | } |
| 363 | |
| 364 | fn file_stem(path: &Path) -> String { |
| 365 | path.file_stem() |
| 366 | .and_then(|s| s.to_str()) |
| 367 | .unwrap_or("unnamed") |
| 368 | .to_string() |
| 369 | } |
| 370 | |
| 371 | /// Split a leading `---\n…\n---` YAML frontmatter block from the markdown body. |
| 372 | /// Returns `(None, whole)` when there is no frontmatter. |
no outgoing calls
no test coverage detected