Chainlit / chainlit

Build Conversational AI in minutes ⚡️
https://docs.chainlit.io
Apache License 2.0
6.91k stars 912 forks source link

The markdown format is not supported #132

Closed jiansongjay closed 1 year ago

jiansongjay commented 1 year ago

It doesn’t support markdown format? image

willydouhard commented 1 year ago

I am not sure I understand what you mean. Are you expecting a specific display for scientific notation?

jiansongjay commented 1 year ago

I am not sure I understand what you mean. Are you expecting a specific display for scientific notation?

No, I mean to display markdown format.It should be a table

willydouhard commented 1 year ago

Here is an example to display a table:

import chainlit as cl

@cl.on_chat_start
async def main():
    msg = """| heading | b  |  c |  d  |
  | - | :- | -: | :-: |
  | cell 1 | cell 2 | 3 | 4 |
"""
    await cl.Message(content=msg).send()
Screenshot 2023-07-04 at 14 16 45

Source here

jiansongjay commented 1 year ago

Here is an example to display a table:

import chainlit as cl

@cl.on_chat_start
async def main():
    msg = """| heading | b  |  c |  d  |
  | - | :- | -: | :-: |
  | cell 1 | cell 2 | 3 | 4 |
"""
    await cl.Message(content=msg).send()
Screenshot 2023-07-04 at 14 16 45

Source here

So it's not displayed because of the style problem of table lines?

willydouhard commented 1 year ago

I am not sure I understand, can you show the markdown you are sending to in the message content?