Function termimad::parse_compound_style

source ·
pub fn parse_compound_style(
    s: &str
) -> Result<CompoundStyle, ParseStyleTokenError>
Expand description

Read a Minimad CompoundStyle from a string.

May contain attributes and from 0 to 2 colors, the first encountered one being the foreground.

Examples:

  • #ab00c1 strikeout
  • "red yellow bold italic"
  • ""
  • "gray(2) gray(20)"
  • ""