aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extensions
diff options
context:
space:
mode:
authorTiago Serafim <tserafim@gmail.com>2012-09-19 18:37:02 -0300
committerTiago Serafim <tserafim@gmail.com>2012-09-19 18:37:02 -0300
commit9756cb9f6014347179a9acf54a739aad5dda0c6d (patch)
tree7228a0ca389962c2f68ff5a341d38d4279c64012 /tests/extensions
parentbcfe4257299034eed6aae8351d115c7691db3a3e (diff)
downloadmarkdown-9756cb9f6014347179a9acf54a739aad5dda0c6d.tar.gz
markdown-9756cb9f6014347179a9acf54a739aad5dda0c6d.tar.bz2
markdown-9756cb9f6014347179a9acf54a739aad5dda0c6d.zip
More tests for the extension and new tests for the RE. It's now possible to use an explicit blank title to not have the <p> tag with the title rendered.
Diffstat (limited to 'tests/extensions')
-rw-r--r--tests/extensions/admonition.html11
-rw-r--r--tests/extensions/admonition.txt11
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/extensions/admonition.html b/tests/extensions/admonition.html
index f28bcfd..437cac6 100644
--- a/tests/extensions/admonition.html
+++ b/tests/extensions/admonition.html
@@ -6,6 +6,14 @@
<li>first</li>
<li>second</li>
</ol>
+<blockquote>
+<p>Some important quote</p>
+<p>another paragraph in the quote</p>
+</blockquote>
+<pre><code>int main() {
+ // insert some code
+}
+</code></pre>
</div>
<p>More text and stuff.</p>
<div class="admonition note">
@@ -16,4 +24,7 @@
<p class="admonition-title">And now...</p>
<p>For something completely different.</p>
<p>You can also use a custom CSS class name.</p>
+</div>
+<div class="admonition tip">
+<p>An explicitly empty string prevents the title from being rendered.</p>
</div> \ No newline at end of file
diff --git a/tests/extensions/admonition.txt b/tests/extensions/admonition.txt
index e8db239..fd18bd6 100644
--- a/tests/extensions/admonition.txt
+++ b/tests/extensions/admonition.txt
@@ -6,6 +6,14 @@ Some text
1. first
2. second
+ > Some important quote
+
+ > another paragraph in the quote
+
+ int main() {
+ // insert some code
+ }
+
More text and stuff.
!!! note "Did you know?"
@@ -15,3 +23,6 @@ More text and stuff.
For something completely different.
You can also use a custom CSS class name.
+
+!!! tip ""
+ An explicitly empty string prevents the title from being rendered.