echo724 / notion2md

Notion Markdown Exporter with Python Cli
MIT License
674 stars 53 forks source link

There is a problem with synced block. #24

Closed panwanke closed 2 years ago

panwanke commented 2 years ago
  1. When the page have synced block, there is some problem.
  2. When the page have many pictures, just one picture would be saved if these pictures have default name(Untitled.png). And the
  3. In the code, some GLobal variables may cause some troubles.
echo724 commented 2 years ago

Thank you for notifying the issues you have. However, can you explain more detail on 3 issues? For example, what error message show up about 3 issues, or what input data you used(a Notion Page or a specific block)?

panwanke commented 2 years ago

Thanks for your reply.

For the first issue, If you convert a notion page to markdown file, which contains sync block, you will get text "sync_block is not surported" and the content in the sync block sometimes would be converted to "code format" in the final markdown file.

For the second issue, since these picture have same default name, so you finally get one picture called "Untitled.png" because the others are covered.

For the third issue, because the global variable in the code, it is not easy to call some api in your package. Thus, I recommend to pass the notion client as the parameter other than the global variable.

echo724 commented 2 years ago

Thanks. I separated those, and will fix one by one of them.