Chainlit / chainlit

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

PDF elements aren't correctly displayed in the chat window #684

Open mirekevertz opened 8 months ago

mirekevertz commented 8 months ago

Chainlit_bug As you can see in the image above, PDF links aren't correctly displayed if they contain parenthes. Here is the code that caused the issue: elements.append(cl.Pdf(name="\\path\to\(1)data.pdf", display="side", url="test", path="mypath.pdf", page=doc_page))

willydouhard commented 8 months ago

I think this is clashing with markdown parsing. Will check if we can fix that