sixlive/parsedown-alert

Alert component for Parsedown PHP

v0.1.0 2018-11-05 03:10 UTC

This package is auto-updated.

Last update: 2024-10-07 05:33:56 UTC


README

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

Packagist Version Packagist Downloads Travis Code Quality Code Coverage StyleCI

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 oss@tjmiller.co instead of using the issue tracker.

Credits

License

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