Closed raphtlw closed 2 years ago
Hi there, @raphtlw
Are all the test results passing? Try running test using npm run test
Also may I know the version of notion-to-md
you are using? Latest is v2.3.4
Not sure what's the issue here. Everything is working fine from my end. Here are the outputs:
Notion:
Output:
v2.3.4
.This is how I am using this library:
Okay, I can now confirm it's got to do with something on my end. Not sure what it is exactly, but i'll figure it out. It seems to work if I put the same block in an empty page, but not when it's part of another pages content.
Renders perfectly when standalone:
Not when together with other blocks:
That's weird because it should also work with other blocks as you can see in the screenshots I have shared. Can you share the markdown response in both cases?
Here is part of the mdBlocks
output from the original Notion page:
It looks alright, but the logged mdString
shows this:
Very weird behaviour indeed. Nothing is being modified in between.
Holy shit I'm so sorry, the Notion page was broken where the blockquote was located, causing the quote to be somehow indented multiple lines, even though I couldn't see it. It looked normal, but I went to backspace and rewrite the whole block again and it got fixed. Apologies and thank you for making time to build such an awesome tool!
Ah I see. Thanks for using notion-to-md :))
This
When converted to markdown using this package, looks like:
When it should have been rendered as:
On the website, it gets rendered as a code block, which is not what I expected.
Will try my best to fork and create a pull request to resolve this issue. If you've got the time, please offer guidance on how this issue can be fixed, thank you.