diff options
Diffstat (limited to 'crates/ra_ide/src/markup.rs')
-rw-r--r-- | crates/ra_ide/src/markup.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/ra_ide/src/markup.rs b/crates/ra_ide/src/markup.rs index 212ca80b7..60c193c40 100644 --- a/crates/ra_ide/src/markup.rs +++ b/crates/ra_ide/src/markup.rs | |||
@@ -32,4 +32,7 @@ impl Markup { | |||
32 | pub fn as_str(&self) -> &str { | 32 | pub fn as_str(&self) -> &str { |
33 | self.text.as_str() | 33 | self.text.as_str() |
34 | } | 34 | } |
35 | pub fn fenced_block(contents: &impl fmt::Display) -> Markup { | ||
36 | format!("```rust\n{}\n```", contents).into() | ||
37 | } | ||
35 | } | 38 | } |