Streamline

This commit is contained in:
Aleksey Kladov 2020-07-09 10:19:37 +02:00
parent 3a26752c66
commit e7c47eb7f5
3 changed files with 36 additions and 50 deletions

View file

@ -32,4 +32,7 @@ impl Markup {
pub fn as_str(&self) -> &str {
self.text.as_str()
}
pub fn fenced_block(contents: &impl fmt::Display) -> Markup {
format!("```rust\n{}\n```", contents).into()
}
}