pub trait Formatter {
fn render(&self, input: &str) -> Result<String, Error>;
fn render_options_start(&self) -> &'static str;
fn render_options_end(&self) -> &'static str;
fn render_option(
&self,
params: &[&str],
block: &str,
man_name: &str
) -> Result<String, Error>;
fn linkify_man_to_md(&self, name: &str, section: u8) -> Result<String, Error>;
}
Required Methods§
sourcefn render(&self, input: &str) -> Result<String, Error>
fn render(&self, input: &str) -> Result<String, Error>
Renders the given markdown to the formatter’s output.
sourcefn render_options_start(&self) -> &'static str
fn render_options_start(&self) -> &'static str
Renders the start of a block of options (triggered by {{#options}}
).
sourcefn render_options_end(&self) -> &'static str
fn render_options_end(&self) -> &'static str
Renders the end of a block of options (triggered by {{/options}}
).