MCPcopy Create free account
hub / github.com/acking-you/static_flow / normalize_markdown_path

Function normalize_markdown_path

crates/cli/src/utils.rs:212–217  ·  view source on GitHub ↗
(path: &str)

Source from the content-addressed store, hash-verified

210}
211
212pub fn normalize_markdown_path(path: &str) -> String {
213 path.replace('\\', "/")
214 .trim_start_matches("./")
215 .trim_start_matches('/')
216 .to_string()
217}
218
219pub fn markdown_filename(path: &Path) -> String {
220 path.file_name()

Callers 2

sync_notesFunction · 0.85
relative_article_idFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected