src/Classes/Markdown.php
public function markdown($markdown, $page = null)
    {

        $file = $markdown . '.md';

        if (isset($page)) {
            $file = $page . '/' . $markdown . '.md';
        }

        if (!Storage::disk('markdown')->exists($file)) {
            return false;
        }

        $array = $this->markdownToArray($file);
        return $array ;

    }
public function markdown($markdown, $page = null)
    {

        $file = $markdown . '.md';

        if (isset($page)) {
            $file = $page . '/' . $markdown . '.md';
        }

        if (!Storage::disk('markdown')->exists($file)) {
            return false;
        }

        $array = $this->markdownToArray($file);
        return $array ;

    }
public function markdown ( $ markdown , $ page = null ) { $ file = $ markdown . '.md' ; if ( isset ( $ page ) ) { $ file = $ page . '/' . $ markdown . '.md' ; } if ( ! Storage :: disk ( 'markdown' ) -> exists ( $ file ) ) { return false ; } $ array = $ this -> markdownToArray ( $ file ) ; return $ array ; }
Parses and output a markdown file

@param  string $markdown File name
@param  null   $page     File directory
@return string
Parses and output a markdown file