pub trait Strikethrough {
// Required method
fn to_strikethrough(&self) -> String;
}
Expand description
An extension trait for strikethrough transformations.
Required Methods§
Sourcefn to_strikethrough(&self) -> String
fn to_strikethrough(&self) -> String
Transforms the given text to be strikethrough.
§Example
use markdown_composer::extensions::github::Strikethrough;
let text = "text";
let striked = text.to_strikethrough();
assert_eq!(striked, "~text~");