Sha256: 44998fce818e6e738ffe1ee7b0f569f162bbb7e98a7deecff316799be4ef2a58

Contents?: true

Size: 454 Bytes

Versions: 10

Compression:

Stored size: 454 Bytes

Contents

<?php

namespace MtHaml\Filter\Markdown;

use MtHaml\Filter\Markdown;

class MichelfMarkdown extends Markdown
{
    private $markdown;

    public function __construct(\Michelf\Markdown $markdown, $forceOptimization = false)
    {
        parent::__construct($forceOptimization);
        $this->markdown = $markdown;
    }

    public function filter($content, array $context, $options)
    {
        return $this->markdown->transform($content);
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.3.1 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.3.0 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.5 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.4 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.3 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.2 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.1 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.2.0 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php
guard-mthaml-0.1.0 vendor/mthaml/mthaml/lib/MtHaml/Filter/Markdown/MichelfMarkdown.php