Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxhoffmann/parsedown-laravel
:arrow_down: A parsedown (markdown) wrapper for Laravel
https://github.com/maxhoffmann/parsedown-laravel
laravel markdown parsedown php
Last synced: about 2 months ago
JSON representation
:arrow_down: A parsedown (markdown) wrapper for Laravel
- Host: GitHub
- URL: https://github.com/maxhoffmann/parsedown-laravel
- Owner: maxhoffmann
- Created: 2013-12-13T17:48:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-13T23:54:08.000Z (about 11 years ago)
- Last Synced: 2024-06-18T20:25:00.117Z (7 months ago)
- Topics: laravel, markdown, parsedown, php
- Homepage:
- Size: 164 KB
- Stars: 55
- Watchers: 7
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Parsedown for Laravel
=====================A Parsedown wrapper for Laravel to compile markdown to HTML.
[Parsedown](http://parsedown.org/) is fast and supports GitHub flavored markdown.
Installation
------------require package in `composer.json`
```json
"require": {
"laravel/framework": "4.1.*",
"maxhoffmann/parsedown-laravel": "dev-master"
},
```add parsedown’s service provider in `config/app.php`
```php
'providers' => array('Illuminate\Foundation\Providers\ArtisanServiceProvider',
...
'Illuminate\Workbench\WorkbenchServiceProvider','MaxHoffmann\Parsedown\ParsedownServiceProvider'
),
```and parsedown’s facade (also in `config/app.php`)
```php
'aliases' => array('App' => 'Illuminate\Support\Facades\App',
...
'View' => 'Illuminate\Support\Facades\View','Markdown' => 'MaxHoffmann\Parsedown\ParsedownFacade',
),
```Usage
-----```php
Markdown::parse('__Hello__ Markdown!');
// returns 'Hello Markdown!
'
```