Sha256: 1efbe420472072e5ff25e8c69b02a9162448511e7a25327cc3adae1e1515af4f
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
--FILE-- <?php $cmEnv = League\CommonMark\Environment::createCommonMarkEnvironment(); $filter = new MtHaml\Filter\Markdown\CommonMark(new League\CommonMark\DocParser($cmEnv), new League\CommonMark\HtmlRenderer($cmEnv)); $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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
guard-mthaml-0.4.0 | vendor/mthaml/mthaml/test/MtHaml/Tests/fixtures/environment/markdown_filter_commonmark.test |