forked from wallyqs/org-ruby
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathinclude-file.html
More file actions
194 lines (193 loc) · 7.05 KB
/
include-file.html
File metadata and controls
194 lines (193 loc) · 7.05 KB
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
<h1 class="title">Example of including a file</h1>
<h2>Basic tests</h2>
<p>Advanced Lists</p>
<p><code>org-ruby</code> supports the following list features of <code>org-mode</code>:</p>
<h2>Nested lists</h2>
<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>
<h2>Multi-paragraph list items</h2>
<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>
<h2>Hyphen, Plus and Asterisk can be used to create lists</h2>
<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>
<h2>Continue numbered list</h2>
<p>Here comes a multi-part list.</p>
<ol>
<li>Item the first.</li>
<li>Item the second.</li>
</ol>
<p>Here is some intermediate text.</p>
<ol start=3>
<li>Item the third.</li>
<li>Item the fourth.</li>
</ol>
<p>BLOCKCOMMENT</p>
<p>Testing that the next part is ignored</p>
<p>And now back to normal!</p>
<h2>Within a commented block</h2>
<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>
<h2>Within a center block</h2>
<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>
<li>.svg</li>
<li>.svgz</li>
<li>.webp</li>
</ul>
<p>Sample absolute link to .svg:</p>
<p><img src="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg" alt="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg" /></p>
<p>Sample absolute link to .svgz:</p>
<p><img src="https://www.w3.org/Graphics/SVG/Test/20110816/svg/conform-viewers-01-t.svgz" alt="https://www.w3.org/Graphics/SVG/Test/20110816/svg/conform-viewers-01-t.svgz" /></p>
<p>Sample relative link to .svg:</p>
<p><img src="images/animate-dom-01-f.svg" alt="images/animate-dom-01-f.svg" /></p>
<p>Sample relative link to .svgz:</p>
<p><img src="images/conform-viewers-01-t.svgz" alt="images/conform-viewers-01-t.svgz" /></p>
<p>Image with alt description</p>
<p>This image should use the description as the alt attribute:</p>
<p><img src="/images/emacs-logo.png" alt="A screenshot of our new UI" /></p>
<p>This is an inline <img src="images/emacs-logo.svg" alt="emacs-logo" /> from a link.</p>
</div>
<h2>Within a blockquote</h2>
<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>
<li>.svg</li>
<li>.svgz</li>
<li>.webp</li>
</ul>
<p>Sample absolute link to .svg:</p>
<p><img src="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg" alt="https://www.w3.org/Graphics/SVG/Test/20110816/svg/animate-dom-01-f.svg" /></p>
<p>Sample absolute link to .svgz:</p>
<p><img src="https://www.w3.org/Graphics/SVG/Test/20110816/svg/conform-viewers-01-t.svgz" alt="https://www.w3.org/Graphics/SVG/Test/20110816/svg/conform-viewers-01-t.svgz" /></p>
<p>Sample relative link to .svg:</p>
<p><img src="images/animate-dom-01-f.svg" alt="images/animate-dom-01-f.svg" /></p>
<p>Sample relative link to .svgz:</p>
<p><img src="images/conform-viewers-01-t.svgz" alt="images/conform-viewers-01-t.svgz" /></p>
<p>Image with alt description</p>
<p>This image should use the description as the alt attribute:</p>
<p><img src="/images/emacs-logo.png" alt="A screenshot of our new UI" /></p>
<p>This is an inline <img src="images/emacs-logo.svg" alt="emacs-logo" /> from a link.</p>
<p>After</p>
</blockquote>
<h2>Within an example block, it should not be possible to include a file.</h2>
<pre class="example">
#+INCLUDE: "./spec/html_examples/only-list.org"
</pre>
<h2>Within a list</h2>
<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>
<h2>Within a table, cannot be included</h2>
<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>
<h2>When including a file as an example</h2>
<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>
<h2>When including a file as an quote</h2>
<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>