Beispiel #1
0
 protected function transformMarkdown($str, $config)
 {
     $html = MarkdownExtra::defaultTransform($str);
     //@todo refactor parsers functions
     $trsf = new PressHTMLTransformer($this);
     $trsf->load($html);
     $trsf->applyTransforms();
     // There is no way to extract footnotes from the class, so we will get
     // them from the HTML parser
     $footnotes_html = $trsf->stripMarkdownExtraFootNotes();
     return ['html' => $trsf->toHTML(), 'footnotes_html' => $footnotes_html];
 }