We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12fb57 commit b1eae29Copy full SHA for b1eae29
1 file changed
src/main.rs
@@ -256,7 +256,9 @@ fn output_file_to_markdown<W: Write>(
256
} else {
257
content.as_str()
258
};
259
- let path_str = path.display().to_string();
+
260
+ let display_path = path.strip_prefix(".").unwrap_or(path);
261
+ let path_str = display_path.display();
262
263
if let Some(extension) = path.extension().and_then(|ext| ext.to_str()) {
264
writeln!(out, "`{path_str}`")?;
0 commit comments