This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function bbcode($bbcode) | |
{ | |
$bbcode = str_replace("\n", " \n", $bbcode); | |
$bbcode = str_replace("[b]", "**", $bbcode); | |
$bbcode = str_replace("[/b]", "**", $bbcode); | |
$bbcode = str_replace("[i]", "*", $bbcode); | |
$bbcode = str_replace("[/i]", "*", $bbcode); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class MyParsedown extends \Parsedown | |
{ | |
function __construct() | |
{ | |
$this->InlineTypes['@'][]= 'UserMention'; | |
$this->inlineMarkerList .= '@'; | |
} |