-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code higlight for the response code blocks #113
Conversation
Hi, is your branch behind the main branch? The project does not use markdown-it anymore |
Ah yes you are right I did not update it. I will see if there are other ways |
Does |
Almost there, right now it doesn't have that auto detection thing like previous hightlight.js, but it should have one, I will let you know once I got it working : ) |
Hi @wong2 It should be all good for now. Cheers |
I'd like to remove the padding, you can overwrite it in styles.css |
Does the default theme work in dark mode? |
|
||
.hljs { | ||
padding: 0 !important; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't do this, this might affect other elements using this class in the page. Put it inside .chat-gpt-container
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's right
One way would be adding all the dark CSS code into the media query for dark mode, but that would include lots of lines of code. 60 lines after prettier formatting. I'm open to more ideas : ) |
Hi, I solved the theme problem here: cc92f92 |
Related #2
The code blocks from chatGPT responses can now be automatically highlighted in the corresponding language.
Thx to @jjroley for the awesome tip : )
Cheers,
James