diff options
Diffstat (limited to 'tests/writer.textile')
-rw-r--r-- | tests/writer.textile | 184 |
1 files changed, 104 insertions, 80 deletions
diff --git a/tests/writer.textile b/tests/writer.textile index f3513884a..a794a55a8 100644 --- a/tests/writer.textile +++ b/tests/writer.textile @@ -45,6 +45,8 @@ E-mail style: bq. This is a block quote. It is pretty short. + + <blockquote> Code in a block quote: @@ -62,8 +64,10 @@ Nested block quotes: bq. nested + bq. nested + </blockquote> This should not be a block quote: 2 > 1. @@ -164,11 +168,12 @@ and using spaces: Multiple paragraphs: - <ol style="list-style-type: decimal;"> - <li> <p>Item 1, graf one.</p> - <p>Item 1. graf two. The quick brown fox jumped over the lazy dog's back.</p></li> - <li> <p>Item 2.</p></li> - <li> <p>Item 3.</p></li> </ol> +<ol style="list-style-type: decimal;"> +<li><p>Item 1, graf one.</p> +<p>Item 1. graf two. The quick brown fox jumped over the lazy dog's back.</p></li> +<li><p>Item 2.</p></li> +<li><p>Item 3.</p></li> +</ol> h2. Nested @@ -203,32 +208,39 @@ h2. Tabs and spaces h2. Fancy list markers - <ol start="2" style="list-style-type: decimal;"> - <li>begins with 2</li> - <li> <p>and now 3</p> - <p>with a continuation</p> - <ol start="4" style="list-style-type: lower-roman;"> - <li>sublist with roman numerals, starting with 4</li> - <li>more items - <ol style="list-style-type: upper-alpha;"> - <li>a subsublist</li> - <li>a subsublist</li> </ol> -</li> </ol> -</li> </ol> +<ol start="2" style="list-style-type: decimal;"> +<li>begins with 2</li> +<li><p>and now 3</p> +<p>with a continuation</p> +<ol start="4" style="list-style-type: lower-roman;"> +<li>sublist with roman numerals, starting with 4</li> +<li>more items +<ol style="list-style-type: upper-alpha;"> +<li>a subsublist</li> +<li>a subsublist</li> +</ol> +</li> +</ol> +</li> +</ol> Nesting: - <ol style="list-style-type: upper-alpha;"> - <li>Upper Alpha - <ol style="list-style-type: upper-roman;"> - <li>Upper Roman. - <ol start="6" style="list-style-type: decimal;"> - <li>Decimal start with 6 - <ol start="3" style="list-style-type: lower-alpha;"> - <li>Lower alpha with paren</li> </ol> -</li> </ol> -</li> </ol> -</li> </ol> +<ol style="list-style-type: upper-alpha;"> +<li>Upper Alpha +<ol style="list-style-type: upper-roman;"> +<li>Upper Roman. +<ol start="6" style="list-style-type: decimal;"> +<li>Decimal start with 6 +<ol start="3" style="list-style-type: lower-alpha;"> +<li>Lower alpha with paren</li> +</ol> +</li> +</ol> +</li> +</ol> +</li> +</ol> Autonumbering: @@ -248,78 +260,88 @@ h1. Definition Lists Tight using spaces: - <dl> - <dt>apple</dt> - <dd>red fruit</dd> - <dt>orange</dt> - <dd>orange fruit</dd> - <dt>banana</dt> - <dd>yellow fruit</dd> </dl> +<dl> +<dt>apple</dt> +<dd>red fruit</dd> +<dt>orange</dt> +<dd>orange fruit</dd> +<dt>banana</dt> +<dd>yellow fruit</dd> +</dl> Tight using tabs: - <dl> - <dt>apple</dt> - <dd>red fruit</dd> - <dt>orange</dt> - <dd>orange fruit</dd> - <dt>banana</dt> - <dd>yellow fruit</dd> </dl> +<dl> +<dt>apple</dt> +<dd>red fruit</dd> +<dt>orange</dt> +<dd>orange fruit</dd> +<dt>banana</dt> +<dd>yellow fruit</dd> +</dl> Loose: - <dl> - <dt>apple</dt> - <dd> <p>red fruit</p></dd> - <dt>orange</dt> - <dd> <p>orange fruit</p></dd> - <dt>banana</dt> - <dd> <p>yellow fruit</p></dd> </dl> +<dl> +<dt>apple</dt> +<dd><p>red fruit</p></dd> +<dt>orange</dt> +<dd><p>orange fruit</p></dd> +<dt>banana</dt> +<dd><p>yellow fruit</p></dd> +</dl> Multiple blocks with italics: - <dl> - <dt>_apple_</dt> - <dd> <p>red fruit</p> - <p>contains seeds, crisp, pleasant to taste</p></dd> - <dt>_orange_</dt> - <dd> <p>orange fruit</p> +<dl> +<dt>_apple_</dt> +<dd><p>red fruit</p> +<p>contains seeds, crisp, pleasant to taste</p></dd> +<dt>_orange_</dt> +<dd><p>orange fruit</p> bc. { orange code block } -bq. <p>orange block quote</p></dd> </dl> +bq. <p>orange block quote</p> + +</dd> +</dl> Multiple definitions, tight: - <dl> - <dt>apple</dt> - <dd>red fruit</dd> - <dd>computer</dd> - <dt>orange</dt> - <dd>orange fruit</dd> - <dd>bank</dd> </dl> +<dl> +<dt>apple</dt> +<dd>red fruit</dd> +<dd>computer</dd> +<dt>orange</dt> +<dd>orange fruit</dd> +<dd>bank</dd> +</dl> Multiple definitions, loose: - <dl> - <dt>apple</dt> - <dd> <p>red fruit</p></dd> - <dd> <p>computer</p></dd> - <dt>orange</dt> - <dd> <p>orange fruit</p></dd> - <dd> <p>bank</p></dd> </dl> +<dl> +<dt>apple</dt> +<dd><p>red fruit</p></dd> +<dd><p>computer</p></dd> +<dt>orange</dt> +<dd><p>orange fruit</p></dd> +<dd><p>bank</p></dd> +</dl> Blank line after term, indented marker, alternate markers: - <dl> - <dt>apple</dt> - <dd> <p>red fruit</p></dd> - <dd> <p>computer</p></dd> - <dt>orange</dt> - <dd> <p>orange fruit</p> - <ol style="list-style-type: decimal;"> - <li>sublist</li> - <li>sublist</li> </ol> -</dd> </dl> +<dl> +<dt>apple</dt> +<dd><p>red fruit</p></dd> +<dd><p>computer</p></dd> +<dt>orange</dt> +<dd><p>orange fruit</p> +<ol style="list-style-type: decimal;"> +<li>sublist</li> +<li>sublist</li> +</ol> +</dd> +</dl> h1. HTML Blocks @@ -630,6 +652,7 @@ An e-mail address: "nobody@nowhere.net":mailto:nobody@nowhere.net bq. Blockquoted: "http://example.com/":http://example.com/ + Auto-links should not occur here: @<http://example.com/>@ bc. or here: <http://example.com/> @@ -653,6 +676,7 @@ Here is a footnote reference,[1] and another.[2] This should _not_ be a footnote bq. Notes can go in quotes.[4] + # And in list items.[5] This paragraph should not be part of the note, as it is not indented. |