KnpMarkdownBundle/README.markdown

18 lines
428 B
Markdown
Raw Normal View History

2010-05-05 18:38:36 +02:00
Provide markdown to Symfony 2 projects.
## INSTALLATION
Put MarkdownBundle to your src/Bundle dir.
Then, enable it in your config.yml:
2010-05-06 15:20:04 +02:00
markdown.parser: ~ # Enable the parser service
markdown.helper: ~ # Enable the helper for use in templates
2010-05-05 18:38:36 +02:00
## USAGE
2010-05-06 15:20:04 +02:00
// Use the service
$html = $this->container->markdownParser->transform($text);
// Use the helper
echo $view->markdown->transform($text);