diff --git a/lib/Docs/RST/RSTCopier.php b/lib/Docs/RST/RSTCopier.php index 81a50a69..d70d2180 100644 --- a/lib/Docs/RST/RSTCopier.php +++ b/lib/Docs/RST/RSTCopier.php @@ -112,7 +112,6 @@ private function fixRSTSyntax(Project $project, string $content): string $content = str_replace('.. Note::', '.. note::', $content); // fix :maxdepth: to :depth: - $content = str_replace(':maxdepth:', ':depth:', $content); $content = str_replace('toctree::', 'menu::', $content); // get rid of .. include:: toc.rst @@ -141,9 +140,6 @@ private function fixRSTSyntax(Project $project, string $content): string assert(is_string($content)); - // replace .. code:: with .. code-block:: - $content = str_replace('.. code::', '.. code-block::', $content); - // fix list syntax $content = str_replace("\n- \n", "\n- ", $content); @@ -176,11 +172,6 @@ private function fixRSTSyntax(Project $project, string $content): string $content = str_replace('.. sidebar::', '', $content); } - // we don't support :term:`*` syntax - $content = preg_replace('/:term:`(.*)`/', '$1', $content); - - assert(is_string($content)); - return $content; }