Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlossanabriam/notion-md-to-docx
Shell script that transforms Notion Markdown files to Word files in macOS
https://github.com/carlossanabriam/notion-md-to-docx
notion word
Last synced: 1 day ago
JSON representation
Shell script that transforms Notion Markdown files to Word files in macOS
- Host: GitHub
- URL: https://github.com/carlossanabriam/notion-md-to-docx
- Owner: CarlosSanabriaM
- License: mit
- Created: 2024-02-15T19:31:33.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-02-24T15:20:23.000Z (11 months ago)
- Last Synced: 2024-02-24T17:48:22.074Z (11 months ago)
- Topics: notion, word
- Language: Shell
- Homepage:
- Size: 1.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Notion Markdown to Word
> __⭐️ Shell script that transforms Notion Markdown files to Word files in macOS.__
This is very convenient if you ever need to export a Notion page to a Microsoft Word file for some reason.
## Prerequisites
Install [pandoc](https://pandoc.org/):
```shell
brew install pandoc
```Install [librsvg](https://wiki.gnome.org/Projects/LibRsvg) if you plan to use SVG images in your Notion page
(its rsvg-convert covers formats without SVG support):
```shell
brew install librsvg
```## Usage
1. Go to your Notion page and export it in Markdown format
2. Execute the shell script from a terminal
```shell
./notion-md-to-docx.sh
```
3. The output Word file should automatically open! 🪄
4. The output file will be located in `~/Downloads/notion-export-content/word.docx`## Example
[Example Notion page](https://carlos-sanabria-miranda-templates.notion.site/Example-page-d87c20d4879b49c8afd31ad681752e99)
The Notion page above was transformed into a Word document using this project.
Screenshots of the output word document
The output document is also available [here](output/word.docx).
## Tips and limitations
* Do not use toggles, bookmarks, embeds, or any other advanced Notion features. Just stick to the ones used in the example page.
* Font colors are lost in the transformation. If you need to keep them, you will have to manually edit the Word file.