Skip to content

Instantly share code, notes, and snippets.

View shawn-crigger's full-sized avatar

Shawn Crigger shawn-crigger

View GitHub Profile
@nfreear
nfreear / php-markdown-extra-autoid-toc.php
Created September 7, 2012 22:20
Run PHP-Markdown-Extra, optionally adding automatic IDs and contents table / (c) N.D.Freear
<?php
/**
* Run PHP-Markdown[-Extra] [-x], optionally adding automatic IDs [-a],
* and a table of contents [-ac].
*
* @copyright 2012-09-07 N.D.Freear.
*/
if (php_sapi_name() != 'cli') {
_error('must be in CLI mode.');