function au_parse_markdown($content, $line = false) { // We need to require the parsedown file, but only once. require_once au_get_path_from_root('library/parsedown.require.php'); require_once au_get_path_from_root('library/parsedown_extra.require.php'); $parse = new ParsedownExtra(); if ($line) { return $parse->line($content); } else { return $parse->text($content); } }