Macro termimad::mad_write_inline [−][src]
macro_rules! mad_write_inline { ($w: expr, $skin: expr, $md: literal $(, $value: expr )* $(,)? ) => { ... }; }
write 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_write_inline!( &mut std::io::stdout(), &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 ).unwrap();