mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-06-29 02:40:10 +02:00
Update doc
This commit is contained in:
parent
568bf62462
commit
00f63e17c1
|
@ -5,18 +5,20 @@ Provide markdown conversion to your Symfony2 projects.
|
||||||
Put MarkdownBundle in your `src/Bundle` dir.
|
Put MarkdownBundle in your `src/Bundle` dir.
|
||||||
|
|
||||||
Then enable it in your `config.yml`:
|
Then enable it in your `config.yml`:
|
||||||
|
knplabs_markdown:
|
||||||
markdown.parser: ~ # Enable the parser service
|
parser: ~ # Enable the parser service
|
||||||
markdown.helper: ~ # Enable the helper in the templates
|
helper: ~ # Enable the helper in the templates
|
||||||
|
|
||||||
Optionnally enable the twig markdown filter :
|
Optionnally enable the twig markdown filter :
|
||||||
|
|
||||||
twig.config: ~ # Enable Twig
|
twig: ~ # Enable Twig
|
||||||
markdown.twig: ~ # Enable the markdown filter
|
knplabs_markdown:
|
||||||
|
twig: ~ # Enable the markdown filter
|
||||||
|
|
||||||
You can also define your own Parser class :
|
You can also define your own Parser class :
|
||||||
|
|
||||||
markdown.parser:
|
knplabs_markdown:
|
||||||
|
parser:
|
||||||
class: Bundle\HelloBundle\MarkdownParser
|
class: Bundle\HelloBundle\MarkdownParser
|
||||||
|
|
||||||
## USAGE
|
## USAGE
|
||||||
|
|
Loading…
Reference in a new issue