patternfly / chatbot

This repo contains the code for the PatternFly virtual assistant extension
MIT License
0 stars 21 forks source link

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

Closed rebeccaalpert closed 2 weeks ago

rebeccaalpert commented 2 weeks ago

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 commented 2 weeks ago

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 commented 2 weeks ago

Preview: https://virtual-assistant-pr-virtual-assistant-295.surge.sh

A11y report: https://virtual-assistant-pr-virtual-assistant-295-a11y.surge.sh

rebeccaalpert commented 2 weeks ago

Should be all set @edonehoo! Thank you.

github-actions[bot] commented 2 weeks ago

:tada: This PR is included in version 2.1.0-prerelease.10 :tada:

The release is available on:

Your semantic-release bot :package::rocket: