public function markdownMenu($dir = null)
    {

        $md_files = $this->markdownFiles($dir);
        $links = [];

        foreach ($md_files as $file) {
            $links[] = $this->markdownLink($file, $this->type);
        }
        return $links;

    }