MDL-21695 markdown conversion now does not break empty() and isnull() comparisons

This commit is contained in:
Petr Skoda 2010-06-06 17:17:06 +00:00
parent 6b8ad965dc
commit a4a0c9d9cd

View file

@ -1755,6 +1755,10 @@ function text_to_html($text, $smiley=true, $para=true, $newlines=true) {
function markdown_to_html($text) {
global $CFG;
if ($text === '' or $text === NULL) {
return $text;
}
require_once($CFG->libdir .'/markdown.php');
return Markdown($text);