pub fn render_instruction_markdown( title: &str, segments: &[InstructionSegment], truncated: bool, project_root: &Path, home_dir: Option<&Path>, highlight_limit: usize, truncation_note: &str, ) -> String