aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/fenced_code_blocks.html
diff options
context:
space:
mode:
authorDaniel Gottlieb <danny.gottlieb@gmail.com>2011-12-27 16:21:39 -0500
committerDaniel Gottlieb <danny.gottlieb@gmail.com>2011-12-27 16:21:39 -0500
commit2a8550ea467e1534d525e1220716b8a5281028c1 (patch)
tree225c39d2771721eb2477619d61db0b48e409b32f /tests/extensions/fenced_code_blocks.html
parent2e3830b9bf3a0829db7a5d04f731b5019d28cc65 (diff)
downloadmarkdown-2a8550ea467e1534d525e1220716b8a5281028c1.tar.gz
markdown-2a8550ea467e1534d525e1220716b8a5281028c1.tar.bz2
markdown-2a8550ea467e1534d525e1220716b8a5281028c1.zip
Allow tildes or backticks in the fenced_code extension to support the syntax used by github
Diffstat (limited to 'tests/extensions/fenced_code_blocks.html')
-rw-r--r--tests/extensions/fenced_code_blocks.html70
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/extensions/fenced_code_blocks.html b/tests/extensions/fenced_code_blocks.html
new file mode 100644
index 0000000..4a0a625
--- /dev/null
+++ b/tests/extensions/fenced_code_blocks.html
@@ -0,0 +1,70 @@
+Xo<pre><code>Fenced
+</code></pre>
+
+<p>Code block starting and ending with empty lines:</p>
+
+<pre><code><br /><br />Fenced
+
+
+</code></pre>
+
+<p>Indented code block containing fenced code block sample:</p>
+
+<pre><code>~~~
+Fenced
+~~~
+</code></pre>
+
+<p>Fenced code block with indented code block sample:</p>
+
+<pre><code>Some text
+
+ Indented code block sample code
+</code></pre>
+
+<p>Fenced code block with long markers:</p>
+
+<pre><code>Fenced
+</code></pre>
+
+<p>Fenced code block with fenced code block markers of different length in it:</p>
+
+<pre><code>In code block
+~~~
+Still in code block
+~~~~~
+Still in code block
+</code></pre>
+
+<p>Fenced code block with Markdown header and horizontal rule:</p>
+
+<pre><code>#test
+---
+</code></pre>
+
+<p>Fenced code block with link definitions, footnote definition and
+abbreviation definitions:</p>
+
+<pre><code>[example]: http://example.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+</code></pre>
+
+<pre><code>[example]: http://backticks.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+</code></pre>
+
+<pre><code>testing tildes in backticks
+
+~~~
+</code></pre>
+
+<pre><code>testing tildes in backticks
+
+```
+</code></pre>