parsedown-alert

An alert component extension of Parsedown

MIT License

Stars
6
Committers
1

Parsedown Alert

NOTE: This requires v1.8 of Parsedown, which has not been released yet.

Installation

You can install the package via composer:

> composer require sixlive/parsedown-alert

Usage

# Here is a post

::: warning
**Warning**
This post is over a year old. Some of this information may be out of date.
:::
$parsedown = new \sixlive\ParsedownAlert;

$parsedown->text(file_get_contents(__DIR__.'/README.md'));
<div class="alert-warning">
    <strong>Warning</strong>
    <p>This post is over a year old. Some of this information may be out of date.</p>
</div>

Testing

> composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Code Style

In addition to the php-cs-fixer rules, StyleCI will apply the Laravel preset.

Linting

> composer styles:lint

Fixing

> composer styles:fix

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.