public function __invoke(Filter $node, Compiler $compiler) { $parser = new Parser(); return $parser->parseParagraph($this->getNodeString($node, $compiler)); }
/** * Parse markdown to HTML, similar to postParse, except online inline elements are accepted. This is good for * one-line descriptions and such, but bad for bodies of text, i.e. posts. * @param Request $request * @return string */ public function postInlineParse(Request $request) { $markdown = PostProcessor::postProcess($request->input('markdown')); return $this->parser->parseParagraph($markdown); }