Download the PHP package hasnayeen/mdb without Composer
On this page you can find all versions of the php package hasnayeen/mdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download hasnayeen/mdb
More information about hasnayeen/mdb
Files in hasnayeen/mdb
Package mdb
Short Description MDX for laravel blade
License MIT
Homepage https://github.com/hasnayeen/mdb
Informations about the package mdb
MDX for laravel blade
This package allows you to use blade components in your markdown. If you're familiar with MDX format than this is same as MDX but with Laravel blade components.
Hire me
I'm available for contractual work on this stack (Filament, Laravel, Livewire, AlpineJS, TailwindCSS). Reach me via discord
Installation
You can install the package via composer:
Usage
Let's say you've a blade component like below
Use the component in your markdown component and convert to html with render
method
Alternatively you can use mdb
method on Illuminate\Support\Str
class
You can also configure the underlying markdown converter by passing an array of options to the render
method. Check League\CommonMark docs for available options.
You can use additional extension to use for markdown rendering by adding them to mdb config file.
This will add the Heading Permalink extension to turn all heading into permalink.
You can provide configuration for the extension by passing array to render
method like before
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Hasnayeen
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of mdb with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0