diff options
author | Waylan Limberg <waylan.limberg@icloud.com> | 2017-03-05 14:51:00 -0500 |
---|---|---|
committer | Waylan Limberg <waylan.limberg@icloud.com> | 2017-03-05 14:54:18 -0500 |
commit | fd4d1d2183b6f1f41445ba0461799da71adfb11a (patch) | |
tree | 88513cb525dabd2f3a421acd854ab98ee239e24c /tests/extensions/admonition.html | |
parent | ab9f4c2dfb678c773387fe478f24bb59a0908e27 (diff) | |
download | markdown-fd4d1d2183b6f1f41445ba0461799da71adfb11a.tar.gz markdown-fd4d1d2183b6f1f41445ba0461799da71adfb11a.tar.bz2 markdown-fd4d1d2183b6f1f41445ba0461799da71adfb11a.zip |
Loosen whitespace requirements for admonitions.
Also consume to the end of the first line of any admonition. Everything after
the title is discarded. However, the only thing that will match should be
whitespace so it should be a non-issue.
Fixes #550.
Diffstat (limited to 'tests/extensions/admonition.html')
-rw-r--r-- | tests/extensions/admonition.html | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/extensions/admonition.html b/tests/extensions/admonition.html index c900757..511d71a 100644 --- a/tests/extensions/admonition.html +++ b/tests/extensions/admonition.html @@ -28,4 +28,12 @@ </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 |