L-a-r-t / chatgpt-to-notion

ChatGPT to Notion brings the cleverness of ChatGPT right into your Notion workspace!
https://chrome.google.com/webstore/detail/chatgpt-to-notion/oojndninaelbpllebamcojkdecjjhcle
333 stars 64 forks source link

Improve code block rendering #8

Closed mhelvens closed 1 year ago

mhelvens commented 1 year ago

Here are some screenshots of code-blocks being rendered by ChatGPT, and the corresponding content produced on Notion by the extension. Note several things:


Screenshot 2023-02-25 at 14 02 18


Screenshot 2023-02-25 at 14 02 36

L-a-r-t commented 1 year ago

I saw your issue and went to investigate this a bit. It seems like the extension's handling of code generated by ChatGPT is a bit inconsistent. Besides from the backtick issue, it doesn't know how to handle cases where the code block has a specified language. I will be fixing this for the next hotfix which should come around early next week.

L-a-r-t commented 1 year ago

Hi, the update that fixes theses issues is now public. Although it didn't happen on my side when testing, I'm not 100% sure if the backtick issue is fixed so I would greatly appreciate if you could provide some feedback on this when you have time! :)