A python script to convert a Markdown file into a Dash Cheatsheet.
This script uses mistune to parse markdown:
pip install mistune
Just invoke it with the markdown file:
./md2dash README.md
then you can add the docset to dash by double clicking or using open
.
Note that the docset name will be based on the name of the Markdown file.
open README.docset
You can get the full usage with -h
.
If not set with -t/--title
the title will use the markdown file basename.
./md2dash -t "Crazy Potato" README.md
By default only headers 1 and 2 are added to the index. You can add additional or different types for different headers:
./md2dash -l 3 Section -l 4 Header README.md
Licensed under the GNU General Public License v3.0.