Navigation Menu

Skip to content

Commit

Permalink
Added basic test for class and extra attribute block on fenced code b…
Browse files Browse the repository at this point in the history
…lock.
  • Loading branch information
michelf committed Jan 6, 2013
1 parent 8694a0b commit 620304e
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
28 changes: 28 additions & 0 deletions PHP Markdown Extra.mdtest/Fenced Code Blocks.text
Expand Up @@ -85,3 +85,31 @@ Indented code block of a fenced code block:
~~~
haha!
~~~

With class:

~~~~~html
<b>bold</b>
~~~~~

~~~~~ html
<b>bold</b>
~~~~~

~~~~~.html
<b>bold</b>
~~~~~

~~~~~ .html
<b>bold</b>
~~~~~

With extra attribute block:

~~~~~{.html}
<b>bold</b>
~~~~~

~~~~~ {.html #codeid}
<b>bold</b>
~~~~~
22 changes: 22 additions & 0 deletions PHP Markdown Extra.mdtest/Fenced Code Blocks.xhtml
Expand Up @@ -79,3 +79,25 @@ LD_PRELOAD=libusb-driver.so $0.bin $*
haha!
~~~
</code></pre>

<p>With class:</p>

<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>

<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>

<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>

<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>

<p>With extra attribute block:</p>

<pre><code class="html">&lt;b>bold&lt;/b>
</code></pre>

<pre><code class="html" id="codeid">&lt;b>bold&lt;/b>
</code></pre>

0 comments on commit 620304e

Please sign in to comment.