mirror of
https://github.com/silverstripe/doc.silverstripe.org
synced 2024-10-22 17:05:50 +02:00
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:
parent
d189f4d0e8
commit
f397d494e0
@ -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
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user