macro_rules! expand {
($markup:expr) => { ... };
}Expand description
Debug macro to expand farben markup and print intermediate representations.
Prints the input markup, the re-serialized token stream, and the final ANSI output. Useful for debugging markup parsing issues.
§Example
ⓘ
expand!("[bold red]hello");
// input: [bold red]hello
// expanded: [bold][red]hello
// ansi: "\x1b[1;31mhello"