MINOR: avoid wrapping api links in code tags as parser cannot handle it.

git-svn-id: http://svn.silverstripe.com/projects/ss2doc/branches/v2@118563 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Will Rossiter 2011-05-05 23:55:59 +00:00
parent d189f4d0e8
commit f397d494e0

View File

@ -168,7 +168,7 @@ class DocumentationParser {
$url = sprintf(self::$api_link_base, $subject, $page->getVersion(), $page->getEntity()->getModuleFolder());
$md = str_replace(
$match,
sprintf('<code>[%s](%s)</code>', $title, $url),
sprintf('[%s](%s)', $title, $url),
$md
);
}
@ -189,7 +189,7 @@ class DocumentationParser {
$url = sprintf(self::$api_link_base, $subject, $page->getVersion(), $page->getEntity()->getModuleFolder());
$md = str_replace(
$match,
sprintf('<code>[%s](%s)</code>', $subject, $url),
sprintf('[%s](%s)', $subject, $url),
$md
);
}