ConsoleApp to export OneNote notebooks to Markdown formats
ConsoleApp to export OneNote notebooks to Markdown formats
OneNote Md Exporter is a console application running on Windows that exports your OneNote notebooks in different markdown formats.
This tool is usefull to :
The tool is easy to install and use, and can produce better results than other OneNote export methods.
OneNoteMdExporter.exeCommand line is supported, run OneNoteMdExporter.exe --help for instructions.
Notebook1
- Section1
- Section1.1
- Page1.md
- Page2.md
- Section2
ProcessingOfPageHierarchy : page hierarchy as parent folder of md file (ParentPage\Child Page.md ; default value) or as md file prefix (ParentPage_ChildPage.md)ResourceFolderLocation : images and file attachments can be stored in a single folder at the root of the export or in a folder next to each md fileAddFrontMatterHeader : add a YAML header containing page metadata at the beginning of each md file---
title: Page title
updated: 2021-11-11 14:55:00Z
created: 2021-11-11 14:54:43Z
---
Page content
PanDocMarkdownFormat : choose the markdown syntax to use among those supported by pandoc. Use GitHub flavor by default.OneNoteLinksHandling : UseHtmlStyling : disable if your markdown editor do not supports HTML.* Cross-notebooks links and links to sections are removed
* Support of the feature requires a mardown editor that supports HTML (like Joplin and Obsidian)
An error Unhandled exception. System.Runtime.InteropServices.COMException occurs after starting the tool
Some of my images are lost / broken during export
Download all files and images from File -> Options -> Sync. Force synchronisation of your notebook and try again the export.Released under the GPL, version 3.
This software carries no warranty of any kind. Some data can be lost during the export process. I recommend to review your notes after export and keep a backup of your OneNote notebooks just in case.
OneNote Md Exporter uses PanDoc universal markup converter.
Pandoc is available at https://github.com/jgm/pandoc
Pandoc is released under the following licence terms, full licence details can be found on the pandoc site.
© 2006-2021 John MacFarlane ([email protected]). Released under the GPL, version 2 or greater. This software carries no warranty of any kind.
pandoc.exe from pandoc-<Version>-windows-x86_64.zip from /src/OneNoteMdExporter/pandoc/ folderdotnet build do not currently support COMReference : https://aka.ms/msbuild/MSB4803)Bugs and feature requests can be reported under: https://github.com/alxnbl/onenote-md-exporter/issues.
You can contribute by adding an new feature or add translations. See this page for more details.
I developed this tool on a voluntary basis, but if you like my work you can buy me a ☕.
No open issues yet, or sync has not completed.