diff --git a/includes/class-Markdown.php b/includes/class-Markdown.php index c4c49ab..3bea99c 100644 --- a/includes/class-Markdown.php +++ b/includes/class-Markdown.php @@ -1,71 +1,78 @@ . include LIBMARKDOWN_PATH; if( !file_exists( LIBMARKDOWN_PATH ) ) { error_die( 'please install php-markdown package or define a different LIBMARKDOWN_PATH into your /load.php' ); } +// the default markdown library changed its behaviour +if( !function_exists( 'markdown' ) ) { + function markdown( $s ) { + return Michelf\Markdown::defaultTransform( $s ); + } +} + class Markdown { /** * Prase a string in markdown and return an HTML rappresentation * * @param string $s * @param array $args * @return array */ public static function parse( $s, $args = [] ) { // avoid