We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8085dd4 commit 3f2d55bCopy full SHA for 3f2d55b
1 file changed
crates/core/src/markdown_viewer/mod.rs
@@ -57,7 +57,7 @@ pub fn md_to_ansi(md: &str, config: &McatConfig, markdown_file_path: Option<&Pat
57
58
let mut output = String::new();
59
output.push_str(&ctx.theme.foreground.fg);
60
- output.push_str(&parse_node(root, &mut ctx));
+ output.push_str(&parse_node(root, &mut ctx).trim_matches('\n'));
61
62
// making sure its wrapped to fit into the termianl size
63
let lines: Vec<String> = textwrap::wrap(&output, term_misc::get_wininfo().sc_width as usize)
0 commit comments