caret

[ACTIVE] a command line tool for browsing Lobsters in your terminal
git clone git://git.figbert.com/caret.git
Log | Files | Refs | README | LICENSE

commit 30f96bd54dad0395446301a0197cf0112d316cb6
parent 36e95968528dedda36ce827aabea45a7603c36e6
Author: FIGBERT <figbert@figbert.com>
Date:   Thu,  4 Jan 2024 23:31:01 -0800

Match article indent with comment indent

Diffstat:
Marticle/article.go | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/article/article.go b/article/article.go @@ -11,6 +11,7 @@ import ( "github.com/charmbracelet/bubbletea" "github.com/charmbracelet/glamour" + gloss "github.com/charmbracelet/lipgloss" md "github.com/JohannesKaufmann/html-to-markdown" "github.com/JohannesKaufmann/html-to-markdown/plugin" @@ -40,6 +41,7 @@ func LoadLinkedArticle(url string) tea.Cmd { if err != nil { return utils.Error{} } + markdown = gloss.NewStyle().MarginLeft(2).Render(markdown) renderedArticle := header + markdown