Download the PHP package northernco/markdown-bundle without Composer
On this page you can find all versions of the php package northernco/markdown-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download northernco/markdown-bundle
More information about northernco/markdown-bundle
Files in northernco/markdown-bundle
Package markdown-bundle
Short Description Symfony bundle for including parsedown for converting markdown to html
License
Informations about the package markdown-bundle
Northern Markdown Bundle
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php
file of your project:
Usage
Once the bundle is installed, you can autowire a MarkdownRepositoryInterface
or MarkdownParserInterface
into any service or controller. It's recommended
to use the MarkdownRepositoryInterface
as this will cache the results to make
subsequent calls much faster.
Example:
In Twig, you can use the md2html
filter:
All versions of markdown-bundle with dependencies
erusev/parsedown Version ^1.7
symfony/cache-contracts Version ^2.0|^3.0
symfony/config Version ^5.4|^6.0
symfony/dependency-injection Version ^5.4|^6.0
symfony/framework-bundle Version ^5.4|^6.0
symfony/html-sanitizer Version ^6.1
twig/twig Version ^2.12|^3.0