chatgpt-demo
chatgpt-demo copied to clipboard
Code highlighting does not support html
Describe the bug
代码高亮不支持html
Reproduction
代码高亮不支持html
System Info
代码高亮不支持html
Used Package Manager
npm
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [X] The provided reproduction is a minimal reproducible of the bug.
Currently it should not support GPT to reply directly to HTML code similar to this:
However, if the content of the GPT reply conforms to the Markdown specification, the HTML can be rendered normally:
It doesn't match Markdown's plain HTML answer, and the official doesn't seem to have handled it.
Might be fixed by #141