p3k/blade-markdown-directive

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/p3k/blade-markdown-directive

0.10.0 2023-02-17 22:14 UTC

This package is auto-updated.

Last update: 2025-09-18 04:05:01 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>