MarkdownParser/README.md

20 lines
517 B
Markdown
Raw Normal View History

2013-11-16 08:51:01 +01:00
## Parsedown
2013-07-23 22:32:45 +02:00
2013-11-16 17:45:13 +01:00
Parsedown is a Markdown parser for PHP. It is fast, consistent and easy to use.
2013-07-10 22:22:16 +02:00
2013-11-16 17:45:13 +01:00
[Home](http://parsedown.org) · [Demo](http://parsedown.org/explorer/) · [Tests](http://parsedown.org/tests/)
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
```