Trait Inline
Source pub trait Inline {
// Required method
fn to_inline(&self) -> String;
}
Expand description
An extension trait for inline transformations.
Transforms the given text into an inline code block.
§Example
use markdown_composer::transforms::Inline;
let text = "Inline text";
let inline = text.to_inline();
assert_eq!(inline, "`Inline text`");