1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
2013-11-13 01:52:59 +02:00
2013-11-13 01:07:39 +02:00
2013-10-23 00:44:21 +03:00
2013-07-24 01:38:38 +03:00
2013-11-13 01:07:39 +02:00
2013-11-13 01:52:59 +02:00

Parsedown PHP

Parsedown is a parser for Markdown. It reads Markdown similarly to how people do. First, it breaks texts into lines. Then, it looks at how these lines start and relate to each other. Finally, it looks for special characters to identify inline elements. As a result, Parsedown is (very) fast and consistent.

Demo · Tests · Home

Installation

Include Parsedown.php or install the composer package.

Example

$text = 'Hello **Parsedown**!';

$result = Parsedown::instance()->parse($text);

echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>
Description
Languages
PHP 75.7%
HTML 24.3%