mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-28 11:33:08 +02:00
DependencyInjection | ||
Helper | ||
Parser | ||
Resources/config | ||
Tests | ||
vendor/parser | ||
.gitignore | ||
LICENSE | ||
MarkdownBundle.php | ||
README.markdown |
Provide markdown to Symfony 2 projects.
INSTALLATION
Put MarkdownBundle to your src/Bundle dir.
Then, enable it in your config.yml:
markdown.parser: ~ # Enable the parser service
markdown.helper: ~ # Enable the helper for use in templates
USAGE
// Use the service
$html = $this->container->markdownParser->transform($text);
// Use the helper
echo $view->markdown->transform($text);
TEST
phpunit -c myapp src/Bundle/MarkdownBundle