[][src]Trait markdown_composer::extensions::github::Strikethrough

pub trait Strikethrough {
    fn to_strikethrough(&self) -> String;
}

An extension trait for strikethrough transformations.

Required methods

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

Implementors

impl<T> Strikethrough for T where
    T: AsRef<str>, 
[src]

Loading content...