diff options
author | Cyborus <cyborus@cyborus.xyz> | 2024-06-08 19:34:05 +0200 |
---|---|---|
committer | Cyborus <cyborus@cyborus.xyz> | 2024-06-08 19:34:05 +0200 |
commit | 8bd72dd59c28931d07ce83896cf291518dea13b3 (patch) | |
tree | 4dd03588ffdec11e680ac40efadc2eba23c0b12c /src/prs.rs | |
parent | Merge pull request 'guess pr number from commit' (#74) from guess-pr into main (diff) | |
download | forgejo-cli-8bd72dd59c28931d07ce83896cf291518dea13b3.tar.xz forgejo-cli-8bd72dd59c28931d07ce83896cf291518dea13b3.zip |
nicer markdown printing
Diffstat (limited to 'src/prs.rs')
-rw-r--r-- | src/prs.rs | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -393,7 +393,6 @@ impl PrCommand { pub async fn view_pr(repo: &RepoName, api: &Forgejo, id: Option<u64>) -> eyre::Result<()> { let crate::SpecialRender { dash, - body_prefix, bright_red, bright_green, @@ -489,9 +488,7 @@ pub async fn view_pr(repo: &RepoName, api: &Forgejo, id: Option<u64>) -> eyre::R if let Some(body) = &pr.body { if !body.trim().is_empty() { println!(); - for line in body.lines() { - println!("{dark_grey}{body_prefix}{reset} {line}"); - } + println!("{}", crate::markdown(body)); } } println!(); |