Strikethrough

Trait Strikethrough 

Source
pub trait Strikethrough {
    // Required method
    fn to_strikethrough(&self) -> String;
}
Expand description

An extension trait for strikethrough transformations.

Required Methods§

Source

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~");

Implementors§

Source§

impl<T> Strikethrough for T
where T: AsRef<str>,