Package Data | |
---|---|
Maintainer Username: | yansongda |
Maintainer Contact: | me@yansongda.cn (yansongda) |
Package Create Date: | 2017-09-04 |
Package Last Update: | 2020-03-01 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-31 15:02:26 |
Package Statistics | |
---|---|
Total Downloads: | 4,846 |
Monthly Downloads: | 55 |
Daily Downloads: | 3 |
Total Stars: | 8 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 0 |
This Package depends on erusev/parsedown
$ composer require yansongda/laravel-parsedown
<?php
Yansongda\LaravelParsedown\ParsedownServiceProvider::class,
// lumen
// $app->register(Yansongda\LaravelParsedown\ParsedownServiceProvider::class);
// $app->withFacades();
<?php
'LaravelParsedown' => Yansongda\LaravelParsedown\Facades\Parsedown::class,
$ php artisan vendor:publish --provider="Yansongda\\LaravelParsedown\\ParsedownServiceProvider" --tag=laravel-parsedown-config
Lumen user please manually copy the configuration file
| config | desc | default | | :-----------: | :------------------------: | :-----: | | breaksEnabled | automatic line breaks | true | | markupEscaped | escapes markup (HTML) | true | | urlsLinked | automatic linking of URLs | true | | safeMode | safeMode | false |
Reference: erusev/parsedown
<?php
@parsedown('## h2');
<?php
{{ parsedown('## h2') }}
MIT