https://github.com/sixlive/parsedown-alert
An alert component extension of Parsedown
https://github.com/sixlive/parsedown-alert
Last synced: 2 months ago
JSON representation
An alert component extension of Parsedown
- Host: GitHub
- URL: https://github.com/sixlive/parsedown-alert
- Owner: sixlive
- License: mit
- Created: 2018-11-05T03:03:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-06T14:44:33.000Z (over 7 years ago)
- Last Synced: 2025-10-03T19:49:30.097Z (8 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 7
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Parsedown Alert
## *NOTE: This requires v1.8 of Parsedown, which has not been released yet.*
[](https://packagist.org/packages/sixlive/parsedown-alert)
[](https://packagist.org/packages/sixlive/parsedown-alert)
[](https://travis-ci.org/sixlive/parsedown-alert)
[](https://scrutinizer-ci.com/g/sixlive/parsedown-alert/)
[](https://scrutinizer-ci.com/g/sixlive/parsedown-alert/)
[](https://github.styleci.io/repos/156152871)
## Installation
You can install the package via composer:
```bash
> composer require sixlive/parsedown-alert
```
## Usage
```md
# Here is a post
::: warning
**Warning**
This post is over a year old. Some of this information may be out of date.
:::
```
```php
$parsedown = new \sixlive\ParsedownAlert;
$parsedown->text(file_get_contents(__DIR__.'/README.md'));
```
```html
Warning
This post is over a year old. Some of this information may be out of date.
```
## Testing
``` bash
> composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Code Style
In addition to the php-cs-fixer rules, StyleCI will apply the [Laravel preset](https://docs.styleci.io/presets#laravel).
### Linting
```bash
> composer styles:lint
```
### Fixing
```bash
> composer styles:fix
```
## Security
If you discover any security related issues, please email oss@tjmiller.co instead of using the issue tracker.
## Credits
- [TJ Miller](https://github.com/sixlive)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.