1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
parsedown/README.md

20 lines
746 B
Markdown
Raw Normal View History

## Parsedown PHP
2013-07-24 00:32:45 +04:00
2013-11-14 02:50:00 +04:00
Parsedown PHP is a parser for Markdown. It reads Markdown the way 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 PHP is (very) fast and consistent.
2013-07-11 00:22:16 +04:00
2013-11-14 02:50:00 +04:00
[Home](http://parsedown.org) · [Demo](http://parsedown.org/explorer/) · [Tests](http://parsedown.org/tests/)
2013-07-23 11:36:28 +04:00
2013-07-24 00:32:45 +04:00
### Installation
Include `Parsedown.php` or install [the composer package](https://packagist.org/packages/erusev/parsedown).
### Example
2013-07-24 00:32:45 +04:00
```php
$text = 'Hello **Parsedown**!';
$result = Parsedown::instance()->parse($text);
echo $result; # prints: <p>Hello <strong>Parsedown</strong>!</p>
2013-11-13 03:38:29 +04:00
```