Skip to content

Conversation

jtyr
Copy link

@jtyr jtyr commented Aug 28, 2025

I'm using Markdown a lot and I'm a little bit sad that OpenCode doesn't render my Markdown-typed messages as Markdown. I have tried to fix it in this PR.

There is one caveat - the highlighting for files and agents is omitted because it breaks the Markdown. Personally I would prefer to have my messages rendered as Markdown than have the references to files and agents highlighted. The feature is disable by default so it doesn't not impact the current user experience in any way.

@jtyr
Copy link
Author

jtyr commented Aug 30, 2025

@thdxr @jayair @rekram1-node Please can you review this PR?

@rekram1-node
Copy link
Collaborator

rekram1-node commented Aug 30, 2025

I think this is mostly up to Adam, tui features are his domain

@adamdotdevin
Copy link
Contributor

main issue with this is that the markdown rendering swallows html tags and other random stuff people add to their prompts (__init__.py), we originally did this and got a bunch of complaints. can revisit with opentui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants