Package Data | |
---|---|
Maintainer Username: | jralph |
Maintainer Contact: | joe@joescode.co.uk (Joseph Ralph) |
Package Create Date: | 2014-03-07 |
Package Last Update: | 2015-02-18 |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-19 03:21:44 |
Package Statistics | |
---|---|
Total Downloads: | 53 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 1 |
NO LONGER MAINTAINED! Try the following instead: https://github.com/jralph/Twig-Markdown
A simple plugin for LaBLog (Also works stand-alone with the twig template engine.).
Installation is done via composer packages.
To install, simply add the following to your composer.json
file.
...
"require": {
...
"lablog/markdown": "1.0.*"
...
}
...
To use the markdown processor with Laravel 4 and LaBlog, just add the service provider to your app/config/app.php
providers list.
Note: The provider must be added after the Laravel 4 Twig Bridge provider. Note2: If you have LaBlog up and running, you will have already added the Twig Bridge provider.
...
'Lablog\Markdown\MarkdownServiceProvider'
...
To use the markdown processor with a stand-along, non-laravel bridged twig, just add the following to your twig extensions.
'Lablog\Markdown\Twig\MarkdownLoader'
Note: This has not been tested!
To use the markdown filter in a template, simply markdown
as a filter to the string you want to process.
<!-- Other Code -->
{{ var_containing_markdown | markdown }}
<!-- Other Code -->