private function buildLink($content)
{
if ($content[0] === '\\') {
$content = substr($content, 1);
}
$displayName = $content;
$content = substr($content, 13);
$parts = explode('::', $content);
$type = strtolower(str_replace('\\', '/', $parts[0]));
$openTag = '<a data-custom-type="' . $type . '"';
if (isset($parts[1])) {
$method = str_replace('()', '', $parts[1]);
$openTag .= ' data-method="' . $method . '">';
} else {
$openTag .= '>';
}
return $openTag . $displayName . '</a>';
}