Last active
March 2, 2018 00:05
-
-
Save pierrehenri220/c473e8902c67182dd0c6f8701dc95d08 to your computer and use it in GitHub Desktop.
Markdown without using JetPack
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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