chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Detect pasted code

Open asvishnyakov opened this issue 3 months ago • 1 comments
trafficstars

Is your feature request related to a problem? Please describe. Code pasted by user should be preserved and rendered as is

Describe the solution you'd like Detect pasted code and wrap it with triple backtick to prevent processing by markdown renderer

Describe alternatives you've considered I don't know such, but open for discussion

Additional context https://dev.to/ray-d-song/how-to-detect-code-language-in-browser-424h

asvishnyakov avatar Aug 08 '25 02:08 asvishnyakov