/** * Returns the readme for the package. * * @param mixed $default * @return string */ public function getReadme($default = null) { try { $readme = $this->loader->getReadme($this); $parser = new MarkdownExtra(); $parser->no_entities = true; $parser->no_markup = true; return $parser->transform($readme); } catch (LoadingException $e) { return $default; } }