There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2014-03-20 22:45 UTC


NO LONGER MAINTAINED! Try the following instead:

LaBlog Parsedown Plugin (Including Twig Filter)

An alternative markdown processor wrapper for LaBlog. This processor wraps the parsedown processor instead of the default MarkdownExtra processor.

This processor has a few differences. The main difference is that this processor required GitHub flavoured markdown. For the most part, this is the standard markdown format, but if you have used Markdown Extra, you will notice some functionality may be different.


Main Processor

LaBlog Parsedown can be installed as the default processor for LaBlog by changing the binding for Lablog\Lablog\Processor\ProcessorInterface.

The binding should be changed as follows:

'Lablog\Lablog\Processor\ProcessorInterface' => 'Lablog\Parsedown\ParsedownProcessor'

Twig Filter

LaBlog Parsedown also adds Parsedown as a twig filter. To enable the twig filter, add the Lablog\Parsedown\ParsedownProcessor to your service providers in your Laravel comfig/app.php file.

Once done, you will be able to use the parsedown filter like so.

<!doctype html>
<html lang="en">
    <meta charset="UTF-8">
    <title>My Twig Template</title>
    {{ content | parsedown }}

Where content is a string of markdown.