raffaelj / parsedown-tasks
Tasks list (checkbox) extension for Parsedown, ParsedownExtra and ParsedownToc
This package's canonical repository appears to be gone and the package has been frozen as a result.
0.1.0
2023-01-21 14:18 UTC
Requires
- erusev/parsedown: ^1.7
Requires (Dev)
- phpunit/phpunit: ^9
README
Tasks list (checkbox) extension for Parsedown 1.7.4, ParsedownExtra 0.8.1 and ParsedownToc
Installation
composer require raffaelj/parsedown-tasks
Example
<?php
require_once(__DIR__.'/vendor/autoload.php');
$parsedown = new ParsedownTasklist();
echo $parsedown->text('
- [ ] Add a pull request
- [x] Check the issues
');
Prints :
<ul>
<li>
<input type="checkbox" disabled /> Add a pull request
</li>
<li>
<input type="checkbox" disabled checked /> Check the issues
</li>
</ul>
Copyright and License
Copyright 2023 Raffael Jesche under the MIT license.
See LICENSE for more information.
Inspired by ParsedownCheckbox by Simon Leblanc, MIT licensed