feat(render): wire table state machine and finalize hook

This commit is contained in:
2026-07-22 12:23:44 -06:00
parent cdfaa0f111
commit bf06d5e8f3
4 changed files with 255 additions and 14 deletions
+7 -1
View File
@@ -421,7 +421,13 @@ impl AppConfig {
if *IS_STDOUT_TERMINAL {
let render_options = self.render_options()?;
let mut markdown_render = MarkdownRender::init(render_options)?;
println!("{}", markdown_render.render(text));
let body = markdown_render.render(text);
let tail = markdown_render.finalize();
if tail.is_empty() {
println!("{body}");
} else {
println!("{body}\n{tail}");
}
} else {
println!("{text}");
}