Open herohoro opened 1 year ago
Hi, thanks for reporting this issue!
Currently, the extension relies on an external parsing library (in fact it relies on a library that parses HTML to markdown and another that parses markdown to Notion API blocks, this might be inefficient but proved to be reliable and support any content generated by ChatGPT with little tuning on the extension's side)
Upon investigation, I found that the issue here is with the intermediate step of parsing HTML to Markdown, I will try to find a workaround to generate the blocks properly. I won't try to write my own parser however as it will very likely be less reliable that the existing solution. I'll give you an update on how this turns out :)
Thank you very much for your detailed explanation.
Your approach using NodeHtmlMarkdown
and @tryfabric/martian
for markdownToBlocks
was very educational.
I also think it's very important to minimize adjustments on the extension side.
I will also try to find a good approach on my own⭐
Current situation
Cause
I tried to partially fix
const answerBlocks
, but I don't know how to check it in the development environment, so I will just report it. I'm sorry.