This is a personal project to convert some of my Mathematica "Save As" HTML to Github Markdown. I want to do this so I can easily share Mathematica notebooks on Github, specifically with an auto-generated readme that reflects the current state of the notebook.
Warning: This code is not very robust. It's also not very general.
These instructions presume you have a Mathematica notebook saved as HTML.
- Install Rust
- Clone this repository.
cd
into the repository.- Run
cargo run <path-to-html-file> > <path-to-markdown-file>
Like this, for example:
cargo run ~/projects/notebook.htm > ~/projects/readme.md
Now your markdown file should be ready to go!