You might also like Caret - our Markdown editor for Mac / Windows / Linux.
A Laravel wrapper of Parsedown to extend its features. If you want to know more about Parsedown alone check out our base repository.
- Blade directive
- Helper function
Parsedown for Laravel is available as a composer package. You can install it using the following command:
composer require "parsedown/laravel"
So you just need to add the service provider to your config/app.php
:
return [
// Other configurations above...
'providers' => [
// Other providers above...
Parsedown\Providers\ParsedownServiceProvider::class,
// Other providers below...
],
// Other configurations below...
];
@parsedown('Hello _Parsedown_!')
or (using a helper approach)
{{ parsedown('Hello _Parsedown_!') }}
Any of the code above will generate:
<p>Hello <em>Parsedown</em>!</p>
The helper can be used with PHP throughout the project.