From b516ff57e6849027643a2ae1ffbd8fc1ff5e1d77 Mon Sep 17 00:00:00 2001 From: Melroy van den Berg Date: Thu, 24 Apr 2025 16:28:28 +0200 Subject: [PATCH] Use go-term-markdown --- formatter/formatter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/formatter/formatter.go b/formatter/formatter.go index 753915e..c52f87c 100644 --- a/formatter/formatter.go +++ b/formatter/formatter.go @@ -8,7 +8,7 @@ import ( "github.com/fatih/color" "github.com/tidwall/gjson" - "github.com/vlanse/go-term-markdown" + markdown "github.com/vlanse/go-term-markdown" ) // Format takes ActivityPub data and returns a formatted string representation @@ -357,7 +357,7 @@ func formatTombstone(jsonStr string, parts []string, bold, green, yellow func(a // Helper to convert HTML to Markdown and render to terminal func renderMarkdown(md string) string { // width=80, no color override, no emoji, no images - return string(markdown.Render(md, 80, 6)) + return string(markdown.Render(md, 78, 2)) } // Replace stripHTML with htmlToMarkdown