aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions/attr_list.txt
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-06-20 06:55:12 -0400
committerWaylan Limberg <waylan@gmail.com>2011-06-20 06:55:12 -0400
commitaf59bf74725937ab2be70fe5de711fa7e4ddfb02 (patch)
tree4c1bb224c95e23b2d77b57654214211c85a6e609 /tests/extensions/attr_list.txt
parentc2cca0cefe6fb9977a23008af17641531e3b9e43 (diff)
downloadmarkdown-af59bf74725937ab2be70fe5de711fa7e4ddfb02.tar.gz
markdown-af59bf74725937ab2be70fe5de711fa7e4ddfb02.tar.bz2
markdown-af59bf74725937ab2be70fe5de711fa7e4ddfb02.zip
Added docs and tests to attr_list ext. Closes #7.
Diffstat (limited to 'tests/extensions/attr_list.txt')
-rw-r--r--tests/extensions/attr_list.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/extensions/attr_list.txt b/tests/extensions/attr_list.txt
new file mode 100644
index 0000000..d7ed274
--- /dev/null
+++ b/tests/extensions/attr_list.txt
@@ -0,0 +1,35 @@
+This is a sextext header {: #setext}
+====================================
+
+A paragraph with some text.
+Line two of the paragraph.
+{: #par1 .myclass }
+
+This is another {: #sextext2 .someclass}
+----------------------------------------
+
+Test some _inline_{: .inline} text.
+A [link](http://example.com){: .linkkyclass title="A title."}
+And a __nested [link][]{: .linky2}__{: .nest}
+
+[link]: http://example.com "Some title"
+
+### This is a hash Header ### {: #hash}
+
+And now some random attributes.
+{:foo bar='b az' baz="blah blah" title="I wasn't kidding!" }
+
+### No closing hash header {: #hash2}
+
+Now test overrides
+{: #overrideme .andme id=overridden class='foo bar' .addme }
+
+ # A code block which contains attr_list syntax
+ # This should be ignored.
+ {: #someid .someclass }
+
+### No colon for compatability with Headerid ext { #hash3 }
+
+Also a codespan: `{: .someclass}`{: .foo}.
+{: #the_end}
+