Package Data | |
---|---|
Maintainer Username: | maxhoffmann |
Maintainer Contact: | max@maximilianhoffmann.com (Maximilian Hoffmann) |
Package Create Date: | 2013-12-13 |
Package Last Update: | 2013-12-13 |
Home Page: | |
License: | MIT |
Last Refreshed: | 2024-11-19 03:16:52 |
Package Statistics | |
---|---|
Total Downloads: | 58,667 |
Monthly Downloads: | 169 |
Daily Downloads: | 8 |
Total Stars: | 55 |
Total Watchers: | 7 |
Total Forks: | 5 |
Total Open Issues: | 0 |
A Parsedown wrapper for Laravel to compile markdown to HTML.
Parsedown is fast and supports GitHub flavored markdown.
require package in composer.json
"require": {
"laravel/framework": "4.1.*",
"maxhoffmann/parsedown-laravel": "dev-master"
},
add parsedown’s service provider in config/app.php
'providers' => array(
'Illuminate\Foundation\Providers\ArtisanServiceProvider',
...
'Illuminate\Workbench\WorkbenchServiceProvider',
'MaxHoffmann\Parsedown\ParsedownServiceProvider'
),
and parsedown’s facade (also in config/app.php
)
'aliases' => array(
'App' => 'Illuminate\Support\Facades\App',
...
'View' => 'Illuminate\Support\Facades\View',
'Markdown' => 'MaxHoffmann\Parsedown\ParsedownFacade',
),
Markdown::parse('__Hello__ Markdown!');
// returns '<p><strong>Hello</strong> Markdown!</p>'