From 51d2b75a380093d2b4e401c4573739292c722c56 Mon Sep 17 00:00:00 2001 From: Matthieu Bontemps Date: Sun, 12 Sep 2010 12:20:29 +0200 Subject: [PATCH 1/3] Fix usage in readme --- README.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.markdown b/README.markdown index 085d89c..d5bac6c 100644 --- a/README.markdown +++ b/README.markdown @@ -1,18 +1,18 @@ -Provide markdown to Symfony 2 projects. +Provide markdown conversion to your Symfony2 projects. ## INSTALLATION -Put MarkdownBundle to 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`: markdown.parser: ~ # Enable the parser service - markdown.helper: ~ # Enable the helper for use in templates + markdown.helper: ~ # Enable the helper in the templates ## USAGE // Use the service - $html = $this->container->markdownParser->transform($text); + $html = $this->container['markdownParser']->transform($text); // Use the helper echo $view->markdown->transform($text); From 1194f9a3393dcf1714a1b422e60cb897cbf184ac Mon Sep 17 00:00:00 2001 From: Matthieu Bontemps Date: Sun, 12 Sep 2010 12:22:28 +0200 Subject: [PATCH 2/3] Fix tag in helper.xml --- Resources/config/helper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/config/helper.xml b/Resources/config/helper.xml index 79f34cc..df32999 100644 --- a/Resources/config/helper.xml +++ b/Resources/config/helper.xml @@ -13,7 +13,7 @@ - + From 9c8f1aa9a3caee4dcc3baf905c96224057b7877e Mon Sep 17 00:00:00 2001 From: Matthieu Bontemps Date: Sun, 12 Sep 2010 13:25:50 +0200 Subject: [PATCH 3/3] Fix readme --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index d5bac6c..b6184e0 100644 --- a/README.markdown +++ b/README.markdown @@ -15,7 +15,7 @@ Then enable it in your `config.yml`: $html = $this->container['markdownParser']->transform($text); // Use the helper - echo $view->markdown->transform($text); + echo $view['markdown']->transform($text); ## TEST