<commit_before>Provide markdown conversion to your Symfony2 projects.

## INSTALLATION

Put MarkdownBundle in your `src/Bundle` dir.

Then enable it in your `config.yml`:
    knplabs_markdown:
      parser: ~      # Enable the parser service
      helper: ~      # Enable the helper in the templates

Optionnally enable the twig markdown filter :

    twig: ~          # Enable Twig
    knplabs_markdown:
      twig: ~        # Enable the markdown filter

You can also define your own Parser class :

    knplabs_markdown:
      parser:
        class: Bundle\HelloBundle\MarkdownParser

## USAGE

    // Use the service
    $html = $this->container['markdownParser']->transform($text);

    // Use the helper
    echo $view['markdown']->transform($text);

If you have enabled the twig markdown filter, you can use the following in your twig templates:

    {{ my_data | markdown }}
<commit_msg>Fix README. DI Container does not support ArrayAccess anymore<commit_after>Provide markdown conversion to your Symfony2 projects.

## INSTALLATION

Put MarkdownBundle in your `src/Bundle` dir.

Then enable it in your `config.yml`:
    knplabs_markdown:
      parser: ~      # Enable the parser service
      helper: ~      # Enable the helper in the templates

Optionnally enable the twig markdown filter :

    twig: ~          # Enable Twig
    knplabs_markdown:
      twig: ~        # Enable the markdown filter

You can also define your own Parser class :

    knplabs_markdown:
      parser:
        class: Bundle\HelloBundle\MarkdownParser

## USAGE

    // Use the service
    $html = $this->container->get('markdownParser')->transform($text);

    // Use the helper
    echo $view['markdown']->transform($text);

If you have enabled the twig markdown filter, you can use the following in your twig templates:

    {{ my_data | markdown }}

{'fraction_non_alphanumeric': 0.08202064095600217, 'fraction_numerical': 0.0010863661053775121, 'mean_word_length': 2.9612903225806453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6461320', 'n_tokens_mistral': 539, 'n_tokens_neox': 512, 'n_words': 188}