diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs index 8673239b3..6ab35c4c7 100644 --- a/helix-term/src/ui/markdown.rs +++ b/helix-term/src/ui/markdown.rs @@ -28,30 +28,7 @@ fn styled_multiline_text<'a>(text: &str, style: Style) -> Text<'a> { .collect(); Text::from(spans) } -/// `copy_selection_on_prev_line` -/// -/// Copies the current primary selection to the first previous line long enough to accomodate it. -/// -/// # Examples -/// -/// The selection is copied from line 2 to line 1. -/// -/// Before: -/// -/// ```helix -/// This is text #[|on line 1]#. -/// This is text #(|on line 1)#. -/// This is text on line 2. -/// ``` -/// -/// Command: `C` -/// -/// After: -/// -/// ```helix -/// This is text #(|on line 1)#. -/// This is text #[|on line 2]#. -/// ``` + pub fn highlighted_code_block<'a>( text: &str, language: &str,