开发者

Debian package libmarkdown-php, how can I use it?

I am just 开发者_StackOverflow中文版wondering how do you implement libmarkdown-php in a php script?

By this, I mean:

  • What code do I run to use the markdown library?
  • Does it simply just add one function?
  • Does it allows me to encode markdown2html and vise versa?

Where is a doc for this package, I can't find one? :(

Okay, so it terns out that I found the docs, just did not match them up, the project-page did not contain any info on it being the Squeeze package libmarkdown-php, Sad to know it is not in Lenny. Thanks @palhmbus for matching them. :)


You can use this in your php script

include_once "markdown.php";
$my_html = Markdown($my_text);

This is an example with PHP SmartyPants:

$my_html = SmartyPants(Markdown($my_text)); 

There is plugins for wordpress & bBlog

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜