aboutsummaryrefslogtreecommitdiff
path: root/tests/extensions/admonition.html
diff options
context:
space:
mode:
authorSadaf Ebrahimi <sadafebrahimi@google.com>2022-11-07 17:06:45 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-11-07 17:06:45 +0000
commitb8ef043a4bce3c0e0c3a83a5309c17d1962be972 (patch)
tree1a110fa9fa982e746b1969458c5b9d373c70a38c /tests/extensions/admonition.html
parentf9792ce11873633749589df798950d128385a987 (diff)
parent41abd7141734af7b464f24a52d0405e0a0ebe63c (diff)
downloadmarkdown-b8ef043a4bce3c0e0c3a83a5309c17d1962be972.tar.gz
Original change: https://android-review.googlesource.com/c/platform/external/markdown/+/2288233 Change-Id: Ieca29d1e12802f580116844c0b5f1770313569c0 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests/extensions/admonition.html')
-rw-r--r--tests/extensions/admonition.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/extensions/admonition.html b/tests/extensions/admonition.html
new file mode 100644
index 0000000..8812dcb
--- /dev/null
+++ b/tests/extensions/admonition.html
@@ -0,0 +1,48 @@
+<p>Some text</p>
+<div class="admonition note">
+<p class="admonition-title">Note</p>
+<p>A normal paragraph here</p>
+<ol>
+<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">
+<p class="admonition-title">Did you know?</p>
+<p>You can customize the title of the admonition</p>
+</div>
+<p>Not part of an Admonition!</p>
+<div class="admonition mycustomcssclass">
+<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 class1 class2 class3">
+<p class="admonition-title">And now...</p>
+<p>For something completely different.</p>
+<p>Several class names can be separated by space chars.</p>
+</div>
+<div class="admonition note anotherclass">
+<p class="admonition-title">Note</p>
+<p>The default title is the capitalized first class name.</p>
+</div>
+<div class="admonition tip">
+<p>An explicitly empty string prevents the title from being rendered.</p>
+</div>
+<p>No body:</p>
+<div class="admonition note">
+<p class="admonition-title">Note</p>
+</div>
+<p>Extra whitespace after the title should not alter output:</p>
+<div class="admonition note">
+<p class="admonition-title">Note</p>
+</div> \ No newline at end of file