MarkdownParser/README.md

20 lines
747 B
Markdown
Raw Normal View History

## Parsedown PHP
2013-07-23 22:32:45 +02:00
2013-11-13 00:52:59 +01:00
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.
2013-07-10 22:22:16 +02:00
2013-11-13 00:47:38 +01:00
[Demo](http://parsedown.org/explorer/) · [Tests](http://parsedown.org/tests/) · [Home](http://parsedown.org)
2013-07-23 09:36:28 +02:00
2013-07-23 22:32:45 +02:00
### Installation
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
### Example
2013-07-23 22:32:45 +02:00
```php
$text = 'Hello **Parsedown**!';
$result = Parsedown::instance()->parse($text);
echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>
2013-11-13 00:38:29 +01:00
```