mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-26 17:30:49 +02:00
18 lines
428 B
Markdown
18 lines
428 B
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); |