Skip to content

Instantly share code, notes, and snippets.

@pierrehenri220
Last active March 2, 2018 00:05
Show Gist options
  • Save pierrehenri220/c473e8902c67182dd0c6f8701dc95d08 to your computer and use it in GitHub Desktop.
Save pierrehenri220/c473e8902c67182dd0c6f8701dc95d08 to your computer and use it in GitHub Desktop.
Markdown without using JetPack
require_once get_template_directory() . '/inc/php-markdown-1.8.0/Michelf/Markdown.inc.php';
use MichelfMarkdown;
function markdown( $str ) {
return Markdown::defaultTransform( $str );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment