Preserve backticks in Markdown command names

This commit is contained in:
Eric Soler authored and David Peter committed 2026-10-05 12:01:42 +02:00
1 parent a6c301099b
commit a760e75f2f
2 files changed
+41 -1

No files matched your search

+12
View File
@@ -929,6 +929,18 @@ fn invalid_command_options_preserve_export_files() {
}
}
#[test]
fn markdown_export_preserves_backticks_and_pipes_in_command_names() {
hyperfine_debug()
.arg("--style=none")
.arg("--export-markdown=-")
.arg("--command-name=echo `uname` | cat")
.arg("sleep 1")
.assert()
.success()
.stdout(predicate::str::contains("| `` echo `uname` \\| cat `` |"));
}
#[test]
fn unused_parameters_are_shown_in_benchmark_name() {
hyperfine()