mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
fix(tui): markdown wrapping off sometimes
This commit is contained in:
parent
f6108b7be8
commit
32d5db4f0a
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ func Extension(path string) string {
|
|||
}
|
||||
|
||||
func ToMarkdown(content string, width int, backgroundColor compat.AdaptiveColor) string {
|
||||
r := styles.GetMarkdownRenderer(width-7, backgroundColor)
|
||||
r := styles.GetMarkdownRenderer(width-6, backgroundColor)
|
||||
content = strings.ReplaceAll(content, RootPath+"/", "")
|
||||
rendered, _ := r.Render(content)
|
||||
lines := strings.Split(rendered, "\n")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue