Commit a90242ad by Carsten Brandt

apidoc: make the guide PDF renderer work again

parent fd55679c
......@@ -26,7 +26,7 @@
"nikic/php-parser": "0.9.*",
"cebe/js-search": "*",
"cebe/markdown": "~1.0.0",
"cebe/markdown-latex": "*"
"cebe/markdown-latex": "~1.0.0"
},
"autoload": {
"psr-4": { "yii\\apidoc\\": "" }
......
......@@ -37,6 +37,11 @@ class ApiMarkdownLaTeX extends GithubMarkdown
return $latex;
}
protected function renderBrokenApiLink($block)
{
return $this->renderApiLink($block);
}
/**
* Converts markdown into HTML
*
......
......@@ -48,7 +48,7 @@ trait ApiMarkdownTrait
];
return [
['text', '<span style="background: #f00;">' . $typeName . '::' . $subjectName . '</span>'],
['brokenApiLink', '<span style="background: #f00;">' . $typeName . '::' . $subjectName . '</span>'],
$offset
];
} else {
......@@ -71,7 +71,7 @@ trait ApiMarkdownTrait
];
return [
['text', '<span style="background: #ff0;">' . $type->name . '</span><span style="background: #f00;">::' . $subjectName . '</span>'],
['brokenApiLink', '<span style="background: #ff0;">' . $type->name . '</span><span style="background: #f00;">::' . $subjectName . '</span>'],
$offset
];
}
......@@ -104,7 +104,7 @@ trait ApiMarkdownTrait
];
return [
['text', '<span style="background: #f00;">' . $object . '</span>'],
['brokenApiLink', '<span style="background: #f00;">' . $object . '</span>'],
$offset
];
}
......@@ -116,4 +116,9 @@ trait ApiMarkdownTrait
{
return $block[1];
}
protected function renderBrokenApiLink($block)
{
return $block[1];
}
}
......@@ -93,7 +93,7 @@
Qiang Xue,
Alexander Makarov,
Carsten Brandt,
Klimov Paul
Klimov Paul,
and
many contributors from the Yii community
}
......@@ -133,7 +133,7 @@
Qiang Xue,\\
Alexander Makarov,\\
Carsten Brandt,\\
Klimov Paul\\
Klimov Paul,\\
and\\
the Yii community
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment