Flerex / LaravelMarkdown

Parsedown for Laravel

Home Page:http://parsedown.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

You might also like Caret - our Markdown editor for Mac / Windows / Linux.

Parsedown for Laravel

Build Status

A Laravel wrapper of Parsedown to extend its features. If you want to know more about Parsedown alone check out our base repository.

Features

  • Blade directive
  • Helper function

Installation

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...
];

Usage

@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.

About

Parsedown for Laravel

http://parsedown.org

License:MIT License


Languages

Language:PHP 100.0%