-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add markdown support for assist messages #26013
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There is one outstanding layout issue during streaming that drives me nuts: Bildschirmaufnahme.2025-07-02.um.20.58.50.movFor some reason the element height of the ha-markdown element does not always match the text content height. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but the scrolling bug has to be fixed
Proposed change
This adds markdown support for messages in assist. LLM often return markdown which is currently shown unformatted in the chat interface.
Type of change
Example configuration
Additional information
Preview of some of the changes
Includes all of the markdown features supported by "marked" as in other parts of home assistant. Here are a few examples:
Checklist
If user exposed functionality or configuration variables are added/changed: