This Rust script converts Markdown files to Neorg (.norg) format. It provides options for recursive directory processing, output to a new directory, and replacing original files.
It's been really quickly hacked together and not tested that much so don't trust it. Please let me know if you find any bugs with a minimal repro in issues.
- Convert Markdown headings, code blocks, lists, and todos to Neorg format
- Output to a new directory
- Process dirs recursively
-
Make sure you have Rust installed on your system. If not, you can install it from https://www.rust-lang.org/.
-
Install the converter directly from GitHub using cargo:
cargo install --git https://github.com/benjscho/md2norg.git
-
The binary will be installed in your Cargo bin directory. Make sure this directory is in your PATH.
-
You can now run the converter using:
md2norg [OPTIONS]
-
Make sure you have Rust installed on your system. If not, you can install it from https://www.rust-lang.org/.
-
Clone this repository:
git clone https://github.com/benjscho/md2norg.git
cd md2norg
- Install the cli:
cargo install --path ./
To uninstall the converter, run:
cargo uninstall md2norg
Run the converter using the following command:
md2norg --help
- Convert files to a new directory:
md2norg --input /path/to/markdown/files --output /path/to/output/directory
- Convert files recursively:
md2norg --input /path/to/markdown/files --output /path/to/output/directory --recursive
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.