Closed jegberin closed 1 week ago
@iseabock this still doesn't work as intended. The code should be formatted using react-syntax-highlighter when there is a block of code, not when single symbols are mentioned, e.g. if the chatbot answers something inside `` as the example also shows in the PR. also my < sign is still renedered as raw hml inside the code blocks.
Now almost all markdown is rendered as codeblocks.
This issue is stale because it has been open for 30 days with no activity.
This issue was closed because it has been inactive for 14 days since being marked as stale.
Describe the bug We have encountered a recurring issue within our web application where code snippets are not being displayed correctly. Specifically, the less-than symbol ('<') is being converted to its corresponding HTML entity ('<') when rendered on web pages, which is causing confusion and misinterpretation of the code presented to our users.
Examples of the Issue:
When displaying a C# for loop, the less-than symbol in the loop condition is being converted, resulting in incorrect display:
Expected:
(int i = 0; i < 5; i++)
Actual:(int i = 0; i < 5; i++)
To Reproduce Steps to reproduce the behavior: The issue does not occur in OAI Playground.
Configuration: Please provide the following