开发者

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

开发者 https://www.devze.com 2023-02-10 08:46 出处:网络
I am just 开发者_StackOverflow中文版wondering how do you implement libmarkdown-php in a php script?

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

精彩评论

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