Sha256: 14bb0f112e8b925bb26dea0a674de8fdbc253a107b28db098935c26aa2da3c08

Contents?: true

Size: 656 Bytes

Versions: 10

Compression:

Stored size: 656 Bytes

Contents

--FILE--
<?php
if (!class_exists('cebe\markdown\Markdown')) {
    throw new PHPUnit_Framework_SkippedTestError('Class cebe\markdown\Markdown does not exist');
}
$filter = new MtHaml\Filter\Markdown\CebeMarkdown(new cebe\markdown\Markdown);
$env = new MtHaml\Environment('twig', array('enable_escaper' => false), array('markdown' => $filter));
echo $env->compileString($parts['HAML'], "$file.haml");

--HAML--
:markdown
 ## Header

 Foo *c*

 * list
:markdown
 ## #{header}

 Foo *c*

 * list
--EXPECT--
<h2>Header</h2>
<p>Foo <em>c</em></p>
<ul>
<li>list</li>
</ul>
{% filter mthaml_markdown %}## {% line 8 %}{{ header }}

Foo *c*

* list
{% endfilter %}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.3.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.3.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.5 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.4 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.3 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.2 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.1 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.2.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test
guard-mthaml-0.1.0 vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_cebemarkdown.test