/** * @inheritDoc */ protected function identifyLine($lines, $current) { if (isset($lines[$current]) && (strncmp($lines[$current], '```', 3) === 0 || strncmp($lines[$current], '~~~', 3) === 0)) { return 'fencedCode'; } return parent::identifyLine($lines, $current); }
/** * This will effectively render all of the markdown in the file to its * appropriate HTML * * @return string * The rendered HTML of the PostFile content */ public function html() : string { return $this->parser->parse($this->raw()); }