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.mdthen 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.docsetYou 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.mdBy 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.mdLicensed under the GNU General Public License v3.0.