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§
Sourcefn to_markdown_yt_host(&self, yt_host: &str) -> String
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§
Sourcefn to_markdown(&self) -> String
fn to_markdown(&self) -> String
Convert rich text to markdown.