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/issues.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/issues.rs')
-rw-r--r-- | src/issues.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/issues.rs b/src/issues.rs index b7b3a6e..233d603 100644 --- a/src/issues.rs +++ b/src/issues.rs @@ -253,7 +253,7 @@ pub async fn view_issue(repo: &RepoName, api: &Forgejo, id: u64) -> eyre::Result println!("By {}", username); if let Some(body) = &issue.body { println!(); - println!("{}", body); + println!("{}", crate::markdown(body)); } Ok(()) } @@ -355,7 +355,7 @@ fn print_comment(comment: &Comment) -> eyre::Result<()> { .as_ref() .ok_or_else(|| eyre::eyre!("user does not have login"))?; println!("{} said:", username); - println!("{}", body); + println!("{}", crate::markdown(&body)); let assets = comment .assets .as_ref() |