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