Macro termimad::mad_print_inline [−][src]
macro_rules! mad_print_inline { ($skin: expr, $md: literal $(, $value: expr )* $(,)? ) => { ... }; }
print a markdown template, with other arguments taking $0
to $9
places in the template.
Example:
use lazy_static::lazy_static; use minimad::mad_inline; use termimad::*; let skin = MadSkin::default(); mad_print_inline!( &skin, "**$0 formula:** *$1*", // the markdown template, interpreted once "Disk", // fills $0 "2*π*r", // fills $1. Note that the stars don't mess the markdown );