forked from Significant-Gravitas/AutoGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Refactor agent message tile rendering logic
- Updated the regular expression pattern to include matching fenced code blocks in addition to headers. - Set the `dotAll` parameter to `true` to match across multiple lines in the regular expression. - Wrapped the message container with a `SingleChildScrollView` widget to enable scrolling when the message content exceeds the available space. - Implemented logic to conditionally render the message as markdown or selectable text based on the value of `hasMarkdown`. - Modified the `MarkdownStyleSheet` to customize the appearance of blockquotes and code blocks. - Updated the child widget of the message container to reflect the changes.
- Loading branch information
1 parent
c65b71d
commit 2f187a8
Showing
1 changed file
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters