protected function MarkdownExtra::doFootnotes in Markdown 7
* Replace footnote references in $text [^id] with a special text-token * which will be replaced by the actual footnote marker in appendFootnotes. *
Parameters
string $text: * @return string
File
- includes/
MarkdownExtra.php, line 1589
Class
- MarkdownExtra
- Markdown Extra Parser Class
Namespace
MichelfCode
protected function doFootnotes($text) {
if (!$this->in_anchor) {
$text = preg_replace('{\\[\\^(.+?)\\]}', "F\32fn:\\1\32:", $text);
}
return $text;
}