Trait cursive_markup::html::Converter
source · [−]pub trait Converter<A> {
fn get_style(&self, annotation: &A) -> Option<Style>;
fn get_link<'a>(&self, annotation: &'a A) -> Option<&'a str>;
}
Expand description
A converter for HTML annotations.
This trait extracts the text formatting and links from the annotations created by a
TextDecorator
.
Required methods
Returns the style for the given annotation (if any).