cebe / markdown

A super fast, highly extensible markdown parser for PHP

Home Page:http://markdown.cebe.cc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation Instructions Need To Be Clearer

CyberPunkCodes opened this issue · comments

I just wasted a few minutes messing with your extension. I would create a pull request, but I am fairly busy.

You don't show an example or mention that you need to echo the $parser->parse($markdown)

It should be like this (I am using GitHub version):

$markdown = file_get_contents( Yii::getAlias('@app/../todo.md') );

$parser = new \cebe\markdown\GithubMarkdown();
echo $parser->parse($markdown);

I was confused at first, wondering why I had a blank page 👍

added some echos, better now?