There is not direct way to transform onenote notes into Notion, so after many search attempts I ended up with this working strategy
Check the requirements and installation instructions mentioned in this repository: https://github.com/SjoerdV/ConvertOneNote2MarkDown
window OS
pandoc
from this page: https://pandoc.org/installing.htmlonenote 2016
application. All the notes that you want to export have to be imported in onenote
appgit clone [<https://github.com/SjoerdV/ConvertOneNote2MarkDown.git>](<https://github.com/SjoerdV/ConvertOneNote2MarkDown.git>)
cd [ConvertOneNote2MarkDown](<https://github.com/SjoerdV/ConvertOneNote2MarkDown.git>)
.\\ConvertOneNote2MarkDown.ps1
# It will ask you to give it the full-path of an empty folder
media
This part can be done on any OS
pip install md2notion
Make sure that you fulfilled all the requirements in the read me file of this repo: https://github.com/Cobertos/md2notion
Download the python script
Modify line 40 to add the names of markdown files to upload, without .md
extension
Add the token for notion in line 42
Add notion token_v2
in line 43
Refer to this part if you do not know how to get your token_v2
value
columnModify line 44 to add the link of the notion page to upload to