From 2a8550ea467e1534d525e1220716b8a5281028c1 Mon Sep 17 00:00:00 2001 From: Daniel Gottlieb Date: Tue, 27 Dec 2011 16:21:39 -0500 Subject: Allow tildes or backticks in the fenced_code extension to support the syntax used by github --- tests/extensions/fenced_code_blocks.html | 70 ++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 tests/extensions/fenced_code_blocks.html (limited to 'tests/extensions/fenced_code_blocks.html') 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
Fenced
+
+ +

Code block starting and ending with empty lines:

+ +


Fenced + + +
+ +

Indented code block containing fenced code block sample:

+ +
~~~
+Fenced
+~~~
+
+ +

Fenced code block with indented code block sample:

+ +
Some text
+
+    Indented code block sample code
+
+ +

Fenced code block with long markers:

+ +
Fenced
+
+ +

Fenced code block with fenced code block markers of different length in it:

+ +
In code block
+~~~
+Still in code block
+~~~~~
+Still in code block
+
+ +

Fenced code block with Markdown header and horizontal rule:

+ +
#test
+---
+
+ +

Fenced code block with link definitions, footnote definition and +abbreviation definitions:

+ +
[example]: http://example.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+
+ +
[example]: http://backticks.com/
+
+[^1]: Footnote def
+
+*[HTML]: HyperText Markup Language
+
+ +
testing tildes in backticks
+
+~~~
+
+ +
testing tildes in backticks
+
+```
+
-- cgit v1.2.3