Skip to content

Commit d29b43b

Browse files
committed
refactor: remove unused markdown renderer
- Remove unused markdown rendering function Signed-off-by: wecoding <wecoding@yeah.net>
1 parent 72e6c5f commit d29b43b

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

internal/ui/chat/chat.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -433,20 +433,6 @@ func (c *Chat) readStdinCmd() tea.Msg {
433433
}
434434
}
435435

436-
// renderMarkdown renders markdown content for terminal display
437-
// raw: The raw markdown string to render
438-
// Returns the rendered string or the original if rendering fails
439-
func (c *Chat) renderMarkdown(raw string) string {
440-
if c.config.Raw {
441-
return raw
442-
}
443-
rendered, err := c.glam.Render(raw)
444-
if err != nil {
445-
return raw
446-
}
447-
return rendered
448-
}
449-
450436
// GetOutput returns the unescaped chat output
451437
// Returns the processed chat output string
452438
func (c *Chat) GetOutput() string {

internal/ui/coders/commands.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ func (c *CommandExecutor) help(_ context.Context, _ string) error {
692692

693693
func (c *CommandExecutor) clear(ctx context.Context, _ string) error {
694694
sessionID := c.coder.cfg.CacheWriteToID
695-
695+
696696
// Clear all loaded contexts first
697697
if _, err := c.coder.store.CleanContexts(ctx, sessionID); err != nil {
698698
return errbook.Wrap("Failed to clean file contexts", err)

0 commit comments

Comments
 (0)