/cheatsheet-generator

Convert Markdown files into image cheatsheets

Primary LanguageJavaScript

Markdown Cheatsheet Generator WIP

Convert Markdown files into .png image cheatsheets.

Currently setup for a iPhone 5 lock screen wallpaper (640x1136) with top and bottom padding. Text content set into three columns.

Markdown files are converted into a canvas element, this is then rendered as a .png.

Browser compatibility

Tested on Chrome and Safari.

Usage

If you're on iOS 7 you'll need to disable the Accelerometer Slideshow Lockscreens in: Settings > General > Accessiblity > Reduce Motion: [x]

Place your Markdown files in the ./documents directory.

Libraries used

html2canvas

https://github.com/niklasvh/html2canvas http://html2canvas.hertzen.com/

PHP Markdown

https://github.com/michelf/php-markdown