Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
Add encourage-issues callout to list help text
Maximilian Roosbb990ce3320f
diff --git a/src/md_help.rs b/src/md_help.rsindex 52c4441c7..d0165a47c 100644--- a/src/md_help.rs+++ b/src/md_help.rs@@ -174,10 +174,17 @@ fn render_table_with_termimad(lines: &[&str], indent: &str, max_width: Option<us/// Strip markdown links, keeping only the link text: `[text](url)` -> `text`////// Limitation: Links in clap help text may be broken across lines by clap's wrapping-/// before this function runs. To support arbitrary markdown links in `--help`:-/// TODO: Set `cmd.term_width(0)` to disable clap's wrapping, then let-/// `render_markdown_in_help_with_width` handle all wrapping after stripping links.-/// This would allow `[text](url)` syntax in cli.rs to work for both terminal and web.+/// before this function runs. The simple fix (setting `cmd.term_width(0)` to disable+/// clap's wrapping) doesn't work because clap provides proper indentation for option+/// description continuation lines — our `wrap_styled_text` would lose this alignment.+///+/// To support arbitrary markdown links in `--help`, we'd need to split help output at+/// `find_after_help_start()`, keep clap's wrapped Options section, get raw after_long_help+/// via `cmd.get_after_long_help()`, process it ourselves, then combine. This requires+/// restructuring since `cmd` is consumed by `try_get_matches_from_mut`.+///+/// Current workaround: Use plain URLs in cli.rs (terminals auto-link `https://...`),+/// transform to markdown links for web docs in `colorize_ci_status_for_html()`.fn strip_markdown_links(line: &str) -> String {let mut result = String::new();let mut chars = line.chars().peekable();