diff --git a/docs/examples/complex-app.md b/docs/examples/complex-app.md index 5df7099..3c10be6 100644 --- a/docs/examples/complex-app.md +++ b/docs/examples/complex-app.md @@ -1,4 +1,4 @@ -# Command-Line Help for complex-app +# Command-Line Help for `complex-app` This document contains the help content for the `complex-app` command-line program. diff --git a/src/lib.rs b/src/lib.rs index 941c4bd..eeeb7c4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -135,7 +135,7 @@ fn write_help_markdown( let title = match options.title { Some(ref title) => title.to_owned(), - None => format!("Command-Line Help for {title_name}"), + None => format!("Command-Line Help for `{title_name}`"), }; writeln!(buffer, "# {title}\n",).unwrap(); diff --git a/tests/test_markdown.rs b/tests/test_markdown.rs index 39caeac..d44aa5a 100644 --- a/tests/test_markdown.rs +++ b/tests/test_markdown.rs @@ -54,7 +54,7 @@ Options: &MarkdownOptions::new().show_footer(false) ), "\ -# Command-Line Help for my-program-display-name +# Command-Line Help for `my-program-display-name` This document contains the help content for the `my-program-display-name` command-line program. @@ -129,7 +129,7 @@ Options: &MarkdownOptions::new().show_footer(false) ), "\ -# Command-Line Help for my-program-display-name +# Command-Line Help for `my-program-display-name` This document contains the help content for the `my-program-display-name` command-line program.