Skip to content

marcinxvmg/parsedown

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parsedown

Better Markdown Parser in PHP

[ demo ]

Features

Installation

Include Parsedown.php or install the composer package.

Example

$Parsedown = new Parsedown();

echo $Parsedown->text('Hello _Parsedown_!'); # prints: <p>Hello <em>Parsedown</em>!</p>

More examples in the wiki and in this video tutorial.

Questions

How does Parsedown work?
Parsedown recognises that Markdown texts are optimised to be read by humans so it tries to read like one. It goes through texts line by line. It looks at how lines start to identify blocks. It looks for special characters to identify inline elements.

Why doesn’t Parsedown use namespaces?
Using namespaces would mean dropping support for PHP 5.2. We believe that since Parsedown is a single class with an uncommon name, making this trade wouldn't be worth it.

Is Parsedown compliant with CommonMark?
We are working on it.

Who uses Parsedown?
phpDocumentor, October CMS, Bolt CMS, Kirby CMS, RaspberryPi.org and more.

How can I help?
Use the project, tell friends about it and if you feel generous, donate some money.

About

Better Markdown Parser in PHP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%