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
332 stars 64 forks source link

'Code Block' and 'mark as code' don't show syntax of language, and only 'save full chat' works. #12

Closed chanmuzi closed 1 year ago

chanmuzi commented 1 year ago
  1. Computer language (python in my case) doens't show any syntax of itself. I write some codes by myself under the code block, and I found that the words I made by myself are applied the function of code in notion.
    In my opintion, some language settings or markdown setting(just suspect) are making troubles here.
    More specific, when I wrote some words in the line scrapped from chatting with GPT, they are not affected by the function of mark as code or code blocks.
    I mean, only when I worte words outside the block(notion unit), it works well.
image
image
  1. Only 'save full chat' optoin works, and 'save each question through pin under the questions' does not. I made several changes of saving my chat, but only 'save full chat' works, and the others don't.
    When saving full chat, it works well regardless of whether I chose 'generating head and table' option or not, which means that my Database in notion has proper format for you to make contents.
    But as I worte above, saving by cling pin under questions doesn't work regardless of the option. image
L-a-r-t commented 1 year ago

Hi, thanks for reporting these two issues!

I submitted a hotfix for the second issue yesterday, it should be public on the Chrome extension store within less than 24hrs.

As for the issue with code highlighting, I was aware of it but just couldn't find an explanation as to why adding a code block via Notion's API didn't work and just left it aside. Your issue made me want to investigate it again and I ended up finding an issue! I'll work on trying to fix a few other things but the hotfix for this will be available during the week.

chanmuzi commented 1 year ago

Thanks for reply! Even though I found that there were two problems here, I think that your extension is really helpful, which is perfectly fitted with my preference :) Thanks, again.