p3k/blade-markdown-directive

0.1.0 2017-06-28 19:52 UTC

README

This adds a Laravel Blade directive to render the enclosed text as Markdown.

Installation

First require this project using Composer:

composer require p3k/blade-markdown-directive

Add the following to your config/app.php file in the providers section:

  p3k\MarkdownServiceProvider::class,

Usage

Now in any .blade.php file, you can use the @markdown directive to render Markdown.

<div>
  @markdown($description)
</div>