asnunes / notion-page-to-html

NodeJS tool to convert public Notion pages to HTML from page ID
MIT License
161 stars 42 forks source link

Code formatting in Notion, not always well rendered. #39

Open jmlmvi opened 11 months ago

jmlmvi commented 11 months ago

Hello,

I think, but I'm not sure, that I've found a tiny bug in your API and it would make me so happy if you could take a minute to look at it, that would be great. Let me give you some background.

I make my articles in Notion and then I use a process with n8n to send it to WordPress. To do this, I use your API, which transforms the notion page into HTML. It's a crazy thing, and then in seconds it arrives as a WordPress Post and it's done, all I have to do is add an image made by ChatGPT. It' so easy, thank you!

Everything works fine as long as there's no code in the text.

When there is code, the code is present but not quite correctly formatted. To help you understand better, I'll give you an example:

Here's the Notion page: https://lmvi.notion.site/Test-e3e31ae11fc94ab38d6c12ed98a226ae Here's the page created by your wonderfull API: https://notion-page-to-html-api.vercel.app/html?id=e3e31ae11fc94ab38d6c12ed98a226ae

If you had a couple of minutes to correct it, it would be so great and so wonderful. 1000 thanks for your help and your tool. Sincerely Jean-Marc Henry