ToMarkdown

Trait ToMarkdown 

Source
pub trait ToMarkdown {
    // Required method
    fn to_markdown_yt_host(&self, yt_host: &str) -> String;

    // Provided method
    fn to_markdown(&self) -> String { ... }
}
Expand description

Trait for converting rich text to markdown.

Required Methods§

Source

fn to_markdown_yt_host(&self, yt_host: &str) -> String

Convert rich text to markdown while changing YouTube links to a custom site.

expected yt_host format (no trailing slash): https://example.com

Provided Methods§

Source

fn to_markdown(&self) -> String

Convert rich text to markdown.

Implementors§