Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aaronpk/blade-markdown-directive
adds a `@markdown` Blade directive for use in Laravel views
https://github.com/aaronpk/blade-markdown-directive
Last synced: 19 days ago
JSON representation
adds a `@markdown` Blade directive for use in Laravel views
- Host: GitHub
- URL: https://github.com/aaronpk/blade-markdown-directive
- Owner: aaronpk
- License: cc0-1.0
- Created: 2017-06-28T19:53:16.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T22:14:37.000Z (over 1 year ago)
- Last Synced: 2024-05-11T08:46:21.610Z (6 months ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Blade Markdown Directive
========================This adds a Laravel [Blade](https://laravel.com/docs/5.4/blade#extending-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:
```php
p3k\MarkdownServiceProvider::class,
```Usage
-----Now in any `.blade.php` file, you can use the `@markdown` directive to render Markdown.
```
@markdown($description)
```