summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyborus <cyborus@cyborus.xyz>2024-06-08 22:24:23 +0200
committerCyborus <cyborus@cyborus.xyz>2024-06-08 22:24:23 +0200
commit5a8626c2e3272d4a926fd019e3188a0790c39790 (patch)
treeafc21423caacf414b71c7dd408364c11276a8e46
parentskip markdown handling for non-fancy output (diff)
downloadforgejo-cli-5a8626c2e3272d4a926fd019e3188a0790c39790.tar.xz
forgejo-cli-5a8626c2e3272d4a926fd019e3188a0790c39790.zip
fix first line of blockquote being grey
-rw-r--r--src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index ebcc9d0..6bd8a45 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -406,7 +406,9 @@ fn markdown(text: &str) -> String {
}
(NodeValue::BlockQuote, Start) => {
ansi_printer.blockquote_depth += 1;
+ ansi_printer.pause_style();
ansi_printer.prefix();
+ ansi_printer.resume_style();
}
(NodeValue::BlockQuote, End) => {
ansi_printer.blockquote_depth -= 1;