public static function humanizeReadme($data)
    {
        $readme = '';
        $data = Json::decode($data);
        if (false === empty($data['content'])) {
            $content = base64_decode(str_replace('\n', '', $data['content']));
            $parser = new GithubMarkdown();
            $readme = $parser->parse($content);
        }
        return $readme;
    }
public static function humanizeReadme($data)
    {
        $readme = '';
        $data = Json::decode($data);
        if (false === empty($data['content'])) {
            $content = base64_decode(str_replace('\n', '', $data['content']));
            $parser = new GithubMarkdown();
            $readme = $parser->parse($content);
        }
        return $readme;
    }
public static function humanizeReadme ( $ data ) { $ readme = '' ; $ data = Json :: decode ( $ data ) ; if ( false === empty ( $ data [ 'content' ] ) ) { $ content = base64_decode ( str_replace ( '\n' , '' , $ data [ 'content' ] ) ) ; $ parser = new GithubMarkdown ( ) ; $ readme = $ parser -> parse ( $ content ) ; } return $ readme ; }
Humanizes github Readme.md file content
We adopt github retrieves Readme.md as json string where "content" field contains base64 encoded markdown
@param $data
@return string
Humanizes github Readme . md file content We adopt github retrieves Readme . md as json string where content field contains base64 encoded markdown