Skip to content

Commit

Permalink
Released version 0.8.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-KM committed Jul 2, 2017
1 parent 16e729a commit 67c3b46
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ParsedownExtra.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ class ParsedownExtra extends Parsedown
{
# ~

const version = '0.7.0';
const version = '0.8.0';

# ~

function __construct()
{
if (version_compare(parent::version, '1.5.0') < 0)
if (version_compare(parent::version, '1.6.0') < 0)
{
throw new Exception('ParsedownExtra requires a later version of Parsedown');
}
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ Include both `Parsedown.php` and `ParsedownExtra.php` or install [the composer p

### Example

``` php
```php
$Extra = new ParsedownExtra();

echo $Extra->text('# Header {.sth}'); # prints: <h1 class="sth">Header</h1>
// prints: <h1 id="my-id" data-header="my-data" class="my-class-a my-class-b">Header</h1>
echo $Extra->text('# Header { .my-class-a .my-class-b #my-id data-header=my-data }');
```

### Questions
Expand All @@ -28,4 +29,4 @@ echo $Extra->text('# Header {.sth}'); # prints: <h1 class="sth">Header</h1>

**How can I help?**

Use it, star it, share it and in case you feel generous, [donate some money](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).
Use it, star it, share it, improve it and in case you feel generous, [donate some money](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=528P3NZQMP8N2).
77 changes: 76 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,85 @@
"name": "Emanuil Rusev",
"email": "[email protected]",
"homepage": "http://erusev.com"
},
{
"name": "Andy Miller",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "David Newton",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Robin Adrianse",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "AcMitch",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Guilherme Capilé",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Thijs van Dijk",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Mirela Lisboa",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Trevor Lemon",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Daniel Rudolf",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Kael Shipman",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Rubén Rubio",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Jason Robert O'Kennedy",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Alexey Lutovinin",
"email": "[email protected]",
"role": "Contributor"
},
{
"name": "Aidan Woods",
"email": "[email protected]>",
"role": "Contributor"
},
{
"name": "Daniel Berthereau",
"email": "[email protected]",
"role": "Contributor"
}
],
"require": {
"php": ">=5.3.6",
"php": ">=5.4.0",
"ext-dom": "*",
"erusev/parsedown": "^1.6"
},
Expand Down

0 comments on commit 67c3b46

Please sign in to comment.