Trait Italic
Source pub trait Italic {
// Required method
fn to_italic(&self) -> String;
}
Expand description
An extension trait for italic transformations.
Transforms the given text into its italic variant.
§Example
use markdown_composer::transforms::Italic;
let text = "Italic text";
let inline = text.to_italic();
assert_eq!(inline, "*Italic text*");