1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153
|
<h1 class="title">Example of including a file</h1>
<h1>Basic tests</h1>
<p>Advanced Lists</p>
<p><code>org-ruby</code> supports the following list features of <code>org-mode</code>:</p>
<h1>Nested lists</h1>
<ul>
<li>You can have nested lists</li>
<li>This is first-level
<ul>
<li>This is a nested item</li>
<li>This is another nested item</li>
</ul>
</li>
<li>Back to the first level</li>
<li>Another first level item
<ol>
<li>This is a numbered list nested within the unordered list</li>
<li>This is another numbered item</li>
</ol>
</li>
</ul>
<p>Note the list ends just some more text. Make sure both list blocks
are closed.</p>
<h1>Multi-paragraph list items</h1>
<p>This list will end with the end-of-file. Make sure all blocks are closed.</p>
<ul>
<li>This is a list item</li>
<li>This list item has multiple paragraphs.
<p>This is paragraph two.</p>
<p>And paragraph three.</p>
</li>
<li>Back to a list item.
<ul>
<li>Nested, just for grins!</li>
<li>woo hoo!</li>
</ul>
</li>
</ul>
<h1>Hyphen, Plus and Asterisk can be used to create lists</h1>
<ul>
<li>One
<ul>
<li>uno
<ul>
<li>ichi</li>
</ul>
</li>
<li>uno</li>
</ul>
</li>
<li>Two
<ul>
<li>dos
<ul>
<li>ni</li>
<li>ni</li>
</ul>
</li>
</ul>
</li>
<li>Three</li>
<li>Four</li>
</ul>
<p>BLOCKCOMMENT</p>
<p>Testing that the next part is ignored</p>
<p>And now back to normal!</p>
<h1>Within a commented block</h1>
<pre class="example">
<li>[ ] &#8220;smart quotes&#8221;</li>
<li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
<li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
<li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
</pre>
<h1>Within a center block</h1>
<div style="text-align: center">
<p>The following included file will be centered:</p>
<p>Inline Images</p>
<p>Per the org-mode <a href="http://orgmode.org/manual/Images-and-tables.html#Images-and-tables">spec</a>, you can include inline images as links without
any descriptive link text, like this:</p>
<p><img src="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" alt="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" /></p>
<p>I currently do not support the caption/link syntax, but I can include
the inline image. I recognize the following image file types:</p>
<ul>
<li>.jpg</li>
<li>.png</li>
<li>.gif</li>
<li>.jpeg</li>
</ul>
</div>
<h1>Within a blockquote</h1>
<p>This is similar to the center block:</p>
<blockquote>
<p>Before
Inline Images</p>
<p>Per the org-mode <a href="http://orgmode.org/manual/Images-and-tables.html#Images-and-tables">spec</a>, you can include inline images as links without
any descriptive link text, like this:</p>
<p><img src="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" alt="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" /></p>
<p>I currently do not support the caption/link syntax, but I can include
the inline image. I recognize the following image file types:</p>
<ul>
<li>.jpg</li>
<li>.png</li>
<li>.gif</li>
<li>.jpeg</li>
</ul>
<p>After</p>
</blockquote>
<h1>Within an example block, it should not be possible to include a file.</h1>
<pre class="example">
#+INCLUDE: "./spec/html_examples/only-list.org"
</pre>
<h1>Within a list</h1>
<ul>
<li>A list that has an included file directive
<ul>
<li>Only go to the first level
<ul>
<li>when included it always goes to the first level and absorbs next list items</li>
</ul>
</li>
</ul>
</li>
<li>This file has only a list</li>
<li>Note it will end with nothing other than a list item.</li>
<li>the world wants to know: Will org-ruby write the closing ul tag?</li>
</ul>
<ul>
<li>3rd level</li>
</ul>
<ul>
<li>3rd level, though it should be a different list</li>
</ul>
<h1>Within a table, cannot be included</h1>
<table>
<tr><th>One</th><th>Two</th><th>Three</th></tr>
<tr><td>#+INCLUDE: “./spec/html_examples/only-list.org”</td><td>Five</td><td>Six</td></tr>
<tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
</table>
<h1>When including a file as an example</h1>
<pre class="example">
- This file has only a list
- Note it will end with nothing other than a list item.
- the world wants to know: Will org-ruby write the closing ul tag?
</pre>
<h1>When including a file as an quote</h1>
<blockquote>
<ul>
<li>This file has only a list</li>
<li>Note it will end with nothing other than a list item.</li>
<li>the world wants to know: Will org-ruby write the closing ul tag?</li>
</ul>
</blockquote>
|