2017 © Pedro Peláez
 

library laravel-markdown

Markdown including typographic prettification based on 'SmartyPants'

image

willvincent/laravel-markdown

Markdown including typographic prettification based on 'SmartyPants'

  • Friday, June 24, 2016
  • by willvincent
  • Repository
  • 0 Watchers
  • 1 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Markdown

Provides a markdown parser facade, with optional typographical prettification using SmartyPants to Laravel 5.x., (*1)

Installation

Download the package with composer:, (*2)

composer require willvincent/laravel-markdown

NOTE: You may need to add the following to your composer.json to allow dev packages to be installed:, (*3)

"minimum-stability": "dev",
"prefer-stable": true

Update your config/app.php file to reference the provider and facade:, (*4)

'providers' => [
    // ...
    willvincent\LaravelMarkdown\LaravelMarkdownServiceProvider::class,
],
'aliases' => [
    // ...

    'Markdown' => willvincent\LaravelMarkdown\Facades\LaravelMarkdownFacade::class,
],

Run php artisan vendor:publish to copy the default config file into your app's config directory; config/markdown.php, (*5)

Usage

Usage is simple, pass markdown you want to parse (and optionally prettify based on your config settings) to the parse() method of the Markdown facade., (*6)

// Assuming $text is a variable populated with markdown...
Markdown::parse($text)

Presumably most people will use this to display data loaded from their database within a blade template;, (*7)

  <div class="parsed-markdown-text">{!! Markdown::parse($text) !!}</div>

The Versions

24/06 2016

dev-master

9999999-dev

Markdown including typographic prettification based on 'SmartyPants'

  Sources   Download

MIT

The Requires

 

The Development Requires

by Will Vincent