Macro termimad::mad_print_inline
source · macro_rules! mad_print_inline { ($skin: expr, $md: literal $(, $value: expr )* $(,)? ) => { ... }; }
Expand description
print a markdown template, with other arguments taking $0
to $9
places in the template.
Example:
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
);