Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--book/src/generated/typable-cmd.md2
-rw-r--r--xtask/src/docgen.rs3
2 files changed, 3 insertions, 2 deletions
diff --git a/book/src/generated/typable-cmd.md b/book/src/generated/typable-cmd.md
index 219f6b95..e416e813 100644
--- a/book/src/generated/typable-cmd.md
+++ b/book/src/generated/typable-cmd.md
@@ -78,7 +78,7 @@
| `:log-open` | Open the helix log file. |
| `:insert-output` | Run shell command, inserting output before each selection. |
| `:append-output` | Run shell command, appending output after each selection. |
-| `:pipe`, `:|` | Pipe each selection to the shell command. |
+| `:pipe`, `:\|` | Pipe each selection to the shell command. |
| `:pipe-to` | Pipe each selection to the shell command, ignoring output. |
| `:run-shell-command`, `:sh`, `:!` | Run a shell command |
| `:reset-diff-change`, `:diffget`, `:diffg` | Reset the diff change at the cursor position. |
diff --git a/xtask/src/docgen.rs b/xtask/src/docgen.rs
index d31c396d..79ecfea1 100644
--- a/xtask/src/docgen.rs
+++ b/xtask/src/docgen.rs
@@ -36,7 +36,8 @@ pub fn typable_commands() -> Result<String, DynError> {
"Description".to_owned(),
]));
- let cmdify = |s: &str| format!("`:{}`", s);
+ // escape | so it doesn't get rendered as a column separator
+ let cmdify = |s: &str| format!("`:{}`", s.replace('|', "\\|"));
for cmd in TYPABLE_COMMAND_LIST {
let names = std::iter::once(&cmd.name)