parsedown = $parsedown; } /** * Convert Markdown to HTML */ public function format( $value ) { // Fix double backslash esacaping $value = str_replace( '\_', '_', $value ); $html = $this->parsedown->setBreaksEnabled( true )->text( $value ); return $html; } }