Skip to content
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

fix(TextMessage): Allow for more complex list output #295

Merged
merged 3 commits into from
Nov 7, 2024

Conversation

rebeccaalpert
Copy link
Member

In Composer AI, we were seeing bad list rendering when lists contained complex formatting. React-markdown seems to categorize the complex formatting as p tags. Since they all had an inline-block on them, this caused rendering issues when the p tag was in an li. This should fix it. I also brought in a silly, more complex example based on Composer AI.

In Composer AI, we were seeing bad list rendering when lists contained complex formatting. React-markdown seems to categorize the complex formatting as p tags. Since they all had an inline-block on them, this caused rendering issues when the p tag was in an li. This should fix it. I also brought in a silly, more complex example based on Composer AI.
@rebeccaalpert
Copy link
Member Author

This is a little silly @edonehoo - let me know if you want a more real-life example here. I just need the bold and code formatting in the list.

@patternfly-build
Copy link

patternfly-build commented Nov 5, 2024

@rebeccaalpert rebeccaalpert linked an issue Nov 5, 2024 that may be closed by this pull request
Copy link
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a couple of small tweaks just to account for internationalization, but I actually really like using this metaphor :D

rebeccaalpert and others added 2 commits November 5, 2024 16:15
…istant/examples/ChatbotMessage/BotMessage.tsx

Co-authored-by: Erin Donehoo <[email protected]>
…istant/examples/ChatbotMessage/BotMessage.tsx

Co-authored-by: Erin Donehoo <[email protected]>
@rebeccaalpert
Copy link
Member Author

Should be all set @edonehoo! Thank you.

Copy link
Contributor

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍

@nicolethoen nicolethoen merged commit 3944512 into patternfly:main Nov 7, 2024
5 checks passed
Copy link

github-actions bot commented Nov 7, 2024

🎉 This PR is included in version 2.1.0-prerelease.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Remove global inline-block on Message paragraphs
4 participants