bt51 / markdown-serviceprovider
Markdown service provider for silex
1.0.1
2012-11-30 01:03 UTC
Requires
- php: >=5.3.2
- dflydev/markdown: 1.0.x
- twig/twig: >=1.2.0
Requires (Dev)
- silex/silex: 1.0.x-dev
Suggests
- silex/silex: 1.0.x-dev
This package is not auto-updated.
Last update: 2024-10-26 14:03:26 UTC
README
The MarkdownServiceProvider provides the "dflydev/markdown" library for silex.
Installation
Create a composer.json your project
{
"require": {
"bt51/markdown-serviceprovider": "dev-master"
}
}
Read more on composer here: http://getcomposer.org
Parameters
- markdown.configuration: An array of options to be passed to the parser's constructor
Services
- markdown: Instance of dflydev\markdown\MarkdownParser
- markdown.extra: Instance of dflydev\markdown\MarkdownParserExtra
Registering
See the example/ directory to see how to register the service
Twig
There is also a twig filter registered within twig extensions. See the example/ directory for more information on how to use it.
License
MIT