Download the PHP package smith981/knp-markdown-bundle without Composer
On this page you can find all versions of the php package smith981/knp-markdown-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package knp-markdown-bundle
Provide markdown conversion (based on Michel Fortin work) to your Symfony2 projects.
INSTALLATION
Add KnpMarkdownBundle to your composer.json
Register the bundle in app/AppKernel.php
USAGE
If you have enabled the Twig markdown filter, you can use the following in your Twig templates:
Change the parser implementation
Create a service implementing Knp\Bundle\MarkdownBundle\MarkdownParserInterface
,
then configure the bundle to use it:
Alternatively if you are using the markdown.parser.sundown
there are
options for enabling sundown extensions and render flags, see the
default Configuration with:
php app/console config:dump-reference knp_markdown
This bundle comes with 5 parser services, 4 based on the same algorithm but providing different levels of compliance to the markdown specification, and one which is uses the php sundown extension:
- markdown.parser.max // fully compliant = slower (default implementation)
- markdown.parser.medium // expensive and uncommon features dropped
- markdown.parser.light // expensive features dropped
- markdown.parser.min // most features dropped = faster
- markdown.parser.sundown // faster and fully compliant (recommended)
markdown.parser.sundown
requires the php sundown extension.
For more details, see the implementations in Parser/Preset.
TEST
phpunit -c myapp vendor/bundles/Knp/Bundle/MarkdownBundle
All versions of knp-markdown-bundle with dependencies
symfony/framework-bundle Version ~2.1
michelf/php-markdown Version 1.4.0