Skip to content

MessageList to support Markdown syntax #8697

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

Closed
guygoldwasser opened this issue Feb 19, 2025 · 3 comments · Fixed by #9080
Closed

MessageList to support Markdown syntax #8697

guygoldwasser opened this issue Feb 19, 2025 · 3 comments · Fixed by #9080

Comments

@guygoldwasser
Copy link

Describe your motivation

B"H
https://vaadin.com/docs/latest/components/message-list
this component use strings only.
in case of using that e.g. with AI api, would like to have the ability to get the html parsing of the markdown syntax.

e.g. ** some text ** will be replaced to some text etc.
I am aware that there is no ISO standard for that, but maybe at least easy client side integration to do the trick with e.g. https://www.npmjs.com/package/showdown

do it on server side and set html is probably discourage as it opens other security problems.

Describe the solution you'd like

E.g. some flag on MessageListItem to use some js converters into HTML

Describe alternatives you've considered

to create my own list

Additional context

No response

@yuriy-fix yuriy-fix added enhancement New feature or request vaadin-messages labels Feb 20, 2025
@yuriy-fix
Copy link
Contributor

yuriy-fix commented Feb 20, 2025

We are looking into this one by either enhancing the current component or introducing a new one.

@avanathan
Copy link

There is a MarkdownMessage by viritin. But it extends a Component instead of a MessageList

@knoobie
Copy link
Contributor

knoobie commented Mar 13, 2025

This might come in handy as official workaround: https://vaadin.com/forum/t/experimental-ai-chat-component-for-vaadin/168535

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

Successfully merging a pull request may close this issue.

4 participants