| @@ -4,14 +4,15 @@ | ||
| 4 | 4 | { |
| 5 | 5 | |
| 6 | 6 | public static function parse_md($text) |
| 7 | 7 | { |
| 8 | - if(!class_exists('Parsedown')) | |
| 8 | + if(!function_exists('Markdown')) | |
| 9 | 9 | { |
| 10 | - $path = VP_FileSystem::instance()->resolve_path('includes', 'parsedown'); | |
| 10 | + $path = VP_FileSystem::instance()->resolve_path('includes', 'markdown/parser'); | |
| 11 | 11 | require $path; |
| 12 | + // require VP_INCLUDE_DIR . '/markdown/parser.php'; | |
| 12 | 13 | } |
| 13 | - return Parsedown::instance()->parse($text); | |
| 14 | + return Markdown($text); | |
| 14 | 15 | } |
| 15 | 16 | |
| 16 | 17 | public static function make_opt($optArray) |
| 17 | 18 | { |