pub trait Render {
// Required method
fn to_para_vec(&self) -> Vec<Line<'_>>;
// Provided methods
fn to_md_str(&self, _with_env: bool) -> String { ... }
fn render_with_mdcat(&self) { ... }
}Required Methods§
Sourcefn to_para_vec(&self) -> Vec<Line<'_>>
fn to_para_vec(&self) -> Vec<Line<'_>>
for ratatui’s paragraph widget
Provided Methods§
Sourcefn to_md_str(&self, _with_env: bool) -> String
fn to_md_str(&self, _with_env: bool) -> String
uniform treatment Question detail to markdown String
_with_env: forQuestionwhether displayQuestionCompile Environment
Sourcefn render_with_mdcat(&self)
fn render_with_mdcat(&self)
use mdcat render question content