2017 © Pedro Peláez
 

library laradown

A New Markdown parser for Laravel built on parsedown

image

buzzylab/laradown

A New Markdown parser for Laravel built on parsedown

  • Saturday, March 10, 2018
  • by maherbusnes
  • Repository
  • 2 Watchers
  • 25 Stars
  • 827 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 14 Versions
  • 5 % Grown

The README.md

Laradown

Latest Stable Version Total Downloads Latest Unstable Version License StyleCI, (*1)

A New Markdown parser for Laravel built on Parsedown and Parsedown Extra., (*2)

Installation

The best and easiest way to install this package is through Composer., (*3)

Compatibility

This package fully compatible with Laravel above 5.4., (*4)

Require Package

Open your application's composer.json file and add the following line to the require array:, (*5)

"buzzylab/laradown": "~0.2"

Note: Make sure that after the required changes your composer.json file is valid by running composer validate., (*6)

After installing the package, open your Laravel config file located at config/app.php and add the following service provider to the $providers array:, (*7)

Buzzylab\Laradown\MarkdownServiceProvider::class,

Note: Checkout Laravel's Service Providers and Service Container documentation for further details., (*8)

And add the following to $aliases, (*9)

'Markdown' => Buzzylab\Laradown\Facades\MarkdownFacade::class

Usage

<?php

echo Markdown::render(); // OR echo Markdown::convert();

That's all., (*10)

Blade Directive:

Use @markdown directive with parameter:

@extends('layouts.master')

@section('content')


{{-- $content is markdown data --}} @markdown($content)
@stop

Use @markdown with @endmarkdown as directive block:

@extends('layouts.master')

@section('content')


@markdown # Laradown Packag @endmarkdown
@stop

Add style to your converted html with @markdownstyle

    {{-- Get defaute style file --}}
    @markdownstyle

    {{-- Custom style file --}}
    @markdownstyle($file)

Helper Functions:

markdown($markdown)

Convert markdown content to html, (*11)

markdown_style()

Add style to converted html, (*12)

License

This software is released under The MIT License (MIT)., (*13)

The Versions

14/12 2016

v0.1.7

0.1.7.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

25/10 2016

v0.1.6

0.1.6.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

25/10 2016

v0.1.5

0.1.5.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

25/10 2016

v0.1.4

0.1.4.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

25/10 2016

dev-analysis-z3Ra6p

dev-analysis-z3Ra6p

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

19/10 2016

v0.1.3

0.1.3.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

18/08 2016

v0.1.2

0.1.2.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

18/08 2016

v0.1.1

0.1.1.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package

25/06 2016

v0.1.0

0.1.0.0

A New Markdown parser for Laravel built on parsedown

  Sources   Download

MIT

The Requires

 

laravel editor markdown package