chatgpt-demo icon indicating copy to clipboard operation
chatgpt-demo copied to clipboard

Code highlighting does not support html

Open cokice opened this issue 2 years ago • 2 comments

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.

cokice avatar Mar 06 '23 05:03 cokice

Currently it should not support GPT to reply directly to HTML code similar to this:

image

However, if the content of the GPT reply conforms to the Markdown specification, the HTML can be rendered normally:

image image

yzh990918 avatar Mar 06 '23 10:03 yzh990918

It doesn't match Markdown's plain HTML answer, and the official doesn't seem to have handled it.

yzh990918 avatar Mar 06 '23 10:03 yzh990918

Might be fixed by #141

ddiu8081 avatar Mar 08 '23 03:03 ddiu8081