org-parse 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.gitignore +23 -0
- data/ChangeLog +4 -0
- data/LICENSE +20 -0
- data/README.rdoc +68 -0
- data/Rakefile +54 -0
- data/VERSION.yml +5 -0
- data/bin/org-parse +51 -0
- data/bin/org-test +74 -0
- data/doc/images/org-parse-struct_1ffae50f0c5eb867f9418df6800f40a5cc3d1751.png +0 -0
- data/doc/org-parse.html +203 -0
- data/doc/org-parse.org +71 -0
- data/doc/struct.dot +10 -0
- data/doc/struct.png +0 -0
- data/examples/body-only.html.erb +1 -0
- data/examples/dot.org-parse-rc +21 -0
- data/lib/org-parse/inline-parser.output +945 -0
- data/lib/org-parse/inline-parser.rb +219 -0
- data/lib/org-parse/inline-parser.ry +77 -0
- data/lib/org-parse/inline-parser.tab.rb +411 -0
- data/lib/org-parse/node.rb +329 -0
- data/lib/org-parse/struct-parser.output +1019 -0
- data/lib/org-parse/struct-parser.rb +78 -0
- data/lib/org-parse/struct-parser.ry +125 -0
- data/lib/org-parse/struct-parser.tab.rb +608 -0
- data/lib/org-parse/struct-scanner.rb +272 -0
- data/lib/org-parse/templates/single.html.erb +118 -0
- data/lib/org-parse/textile-visitor.rb +296 -0
- data/lib/org-parse/utils.rb +15 -0
- data/lib/org-parse/visitor.rb +542 -0
- data/lib/org-parse.rb +46 -0
- data/org-parse.gemspec +113 -0
- data/rakelib/racc.rake +16 -0
- data/test/data/blocks.org +67 -0
- data/test/data/emphasis.org +7 -0
- data/test/data/footnote.html +136 -0
- data/test/data/footnote.org +8 -0
- data/test/data/html-export.html +1062 -0
- data/test/data/html-export.org +342 -0
- data/test/data/images.html +179 -0
- data/test/data/images.org +30 -0
- data/test/data/index.org +242 -0
- data/test/data/lily20100228.jpg +0 -0
- data/test/data/lily20100228t.jpg +0 -0
- data/test/data/link.org +7 -0
- data/test/data/list_before_1st_headline.html +119 -0
- data/test/data/list_before_1st_headline.org +7 -0
- data/test/data/lists.html +284 -0
- data/test/data/lists.org +78 -0
- data/test/data/no-headline.org +6 -0
- data/test/data/one-headline.org +2 -0
- data/test/data/paragraph.org +13 -0
- data/test/data/quote.org +15 -0
- data/test/data/sections.html +173 -0
- data/test/data/sections.org +9 -0
- data/test/data/simple-list.org +6 -0
- data/test/data/skip_t.org +3 -0
- data/test/data/structure.org +53 -0
- data/test/data/table.org +14 -0
- data/test/data/test-list.org +12 -0
- data/test/data/text-bef-hl.org +5 -0
- data/test/data/text.org +6 -0
- data/test/data/title.html +88 -0
- data/test/data/title.org +6 -0
- data/test/data/verse.org +48 -0
- data/test/helper.rb +31 -0
- data/test/test_org-parse.rb +148 -0
- metadata +134 -0
data/test/data/index.org
ADDED
@@ -0,0 +1,242 @@
|
|
1
|
+
|
2
|
+
OrgParse Sample files
|
3
|
+
|
4
|
+
[[index.html]]
|
5
|
+
|
6
|
+
* ブロックレベルの構造
|
7
|
+
#+BEGIN_VERSE
|
8
|
+
セクション 1
|
9
|
+
セクション 1.1
|
10
|
+
セクション 2
|
11
|
+
#+END_VERSE
|
12
|
+
の様に、下位レベルのセクションは、上位レベルのセクションに含まれる
|
13
|
+
|
14
|
+
セクションのタイトルは、'*' -> <h2> から始まり、'****' 以降は、UL
|
15
|
+
として出力される。
|
16
|
+
<h> と <ul> の閾値は、#+OPTIONS: H:n で指定出来る。
|
17
|
+
(デフォルトは、n=3)
|
18
|
+
* タイトル
|
19
|
+
最初のテキストラインが、待った無しでタイトルになる。
|
20
|
+
最初のヘッドラインまでの部分も、出力される。
|
21
|
+
: title
|
22
|
+
:
|
23
|
+
: xxxx
|
24
|
+
: * 1st headline
|
25
|
+
の場合、
|
26
|
+
: <h1>title</h1>
|
27
|
+
:
|
28
|
+
: xxxx
|
29
|
+
: <h2>1st headline</h2>
|
30
|
+
の様に変換。[fn::実際はセクションヘッダには<div>やら何やらくっつく]
|
31
|
+
|
32
|
+
ヘッドラインから始まる場合は、最初のヘッドラインの内容がタイトルとなる。
|
33
|
+
** #+TITLE: xxxx
|
34
|
+
: #+TITLE: xxxx
|
35
|
+
が指定されている場合は、xxxx がタイトルになる。
|
36
|
+
|
37
|
+
** Options: skip:t
|
38
|
+
: #+OPTIONS: skip:t
|
39
|
+
が指定されていると、最初のセクション以前のテキストは捨てられる。
|
40
|
+
タイトルには、1st headline が使われる。
|
41
|
+
|
42
|
+
この場合も、
|
43
|
+
: #+TITLE: xxxx
|
44
|
+
で、タイトルを指定出来る。
|
45
|
+
* Section node
|
46
|
+
Section node は、Headline から始まり、次のHeadline(又は文末)の直前までを、
|
47
|
+
子要素に含むノードである。
|
48
|
+
|
49
|
+
#+BEGIN_EXAMPLE
|
50
|
+
Section node
|
51
|
+
Headline
|
52
|
+
some other nodes
|
53
|
+
#+END_EXAMPLE
|
54
|
+
|
55
|
+
COMMENT から始まるヘッドラインを持つ Section は、全体をコメントとして扱う。
|
56
|
+
|
57
|
+
* Brock nodes
|
58
|
+
行単位の範囲を持つ要素。
|
59
|
+
|
60
|
+
** Headline node
|
61
|
+
/^\*+ / から始まる行。'*' の数がセクションのレベルを表す。
|
62
|
+
|
63
|
+
セクションの開始を示す。
|
64
|
+
*** Tags
|
65
|
+
ヘッドラインには、TAGを付けることが出来る。
|
66
|
+
** Paragraph node
|
67
|
+
ヘッドラインの次の行から始まり、セクションの最後か、1行以上の空行で終わる部分は、
|
68
|
+
段落として扱う。段落中で、改行させたい場合には、行末に"\\"を置く。
|
69
|
+
|
70
|
+
: #+BEGIN_VERSE 〜 #+END_VERSE
|
71
|
+
で囲われた部分は、改行が保存される。
|
72
|
+
[[file:./verse.org][verse example]] [[./verse.html][html]]
|
73
|
+
|
74
|
+
#+BEGIN_EXAMPLE
|
75
|
+
<p class="verse">
|
76
|
+
...<br/>
|
77
|
+
...<br/>
|
78
|
+
</p>
|
79
|
+
#+END_EXAMPLE
|
80
|
+
|
81
|
+
の様に、展開される様だ。
|
82
|
+
|
83
|
+
** Whiteline node
|
84
|
+
空行のノード。
|
85
|
+
パラグラフや、その他のブロックの終端を示す。
|
86
|
+
|
87
|
+
インデントのチェックが必要か?
|
88
|
+
|
89
|
+
** Block nodes
|
90
|
+
#+begin 〜 #+end ブロック。
|
91
|
+
*** EXAMPLE
|
92
|
+
#+BEGIN_EXAMPLE
|
93
|
+
: #+BEGIN_EXMPLE
|
94
|
+
: ...
|
95
|
+
: #+END_EXAMPLE
|
96
|
+
#+END_EXAMPLE
|
97
|
+
|
98
|
+
you can also start the example lines with a colon followed by a space.
|
99
|
+
There may also be additional whitespace before the colon:
|
100
|
+
|
101
|
+
: : example
|
102
|
+
|
103
|
+
EXAMPL ブロックは、<pre> タグに変換される
|
104
|
+
*** SRC
|
105
|
+
#+BEGIN_SRC emacs-lisp
|
106
|
+
(+ 1 2)
|
107
|
+
#+END_SRC
|
108
|
+
|
109
|
+
#+BEGIN_COMMENT
|
110
|
+
ここは、コメントブロックだよ
|
111
|
+
#+END_COMMENT
|
112
|
+
*** VERSE
|
113
|
+
#+begin_verse
|
114
|
+
このブロック内では、改行が
|
115
|
+
保存される。
|
116
|
+
|
117
|
+
行頭のインデントは、html の場合、 に変換される
|
118
|
+
#+end_verse
|
119
|
+
|
120
|
+
行頭のインデントは、~#+BEGIN_VERSE~ のインデント + 1 をベースとして、
|
121
|
+
(各行のインデント - ベース) * 2 = の数となる。
|
122
|
+
|
123
|
+
*** HTML
|
124
|
+
[[Quote HTML]]
|
125
|
+
|
126
|
+
#+HTML: <literal html code>
|
127
|
+
|
128
|
+
#+BEGIN_HTML
|
129
|
+
<h2> ここには、自由に</h2>
|
130
|
+
<p>HTML tag が書ける。</p>
|
131
|
+
#+END_HTML
|
132
|
+
|
133
|
+
** Plain Lists
|
134
|
+
[[./lists.org][lists.org]] [[./lists.html][html]]
|
135
|
+
|
136
|
+
*** Unordered list
|
137
|
+
先頭が[-+*]で始まる行は、順序無リストアイテムの開始を示し、
|
138
|
+
これに続く、インデントが開始マークより大きい行、又は、空行は
|
139
|
+
このアイテムに含まれる。
|
140
|
+
|
141
|
+
リストは、ネスト出来る。
|
142
|
+
|
143
|
+
空行のインデントは、チェックされない。
|
144
|
+
*** Ordered list
|
145
|
+
先頭が、"数字." 又は "数字)" で始まる行は、番号付きリストを表す。
|
146
|
+
*** Description list
|
147
|
+
: - XXXX :: mmmmm
|
148
|
+
の形式の行は、説明付きリストを表す。
|
149
|
+
|
150
|
+
** Comment line
|
151
|
+
#+ これは、コメント行
|
152
|
+
# これもコメント行
|
153
|
+
だけど、
|
154
|
+
# これは、コメント行では無い。 でも、 #+ ここからは? やっぱり地の文。
|
155
|
+
** COMMENT comment block
|
156
|
+
このセクションは、全体がコメントとして扱われる。
|
157
|
+
|
158
|
+
** Option node
|
159
|
+
: #+TITLE
|
160
|
+
等の、オプション設定を行う行
|
161
|
+
*** #+ATTR_HTML
|
162
|
+
If you want to specify attributes for links,
|
163
|
+
you can do so using a special #+ATTR_HTML line
|
164
|
+
to define attributes
|
165
|
+
that will be added to the <a> or <img> tags.
|
166
|
+
|
167
|
+
Here is an example that sets title and style attributes for a link:
|
168
|
+
: #+ATTR_HTML: title="The Org-mode homepage" style="color:red;"
|
169
|
+
: [[http://orgmode.org]]
|
170
|
+
|
171
|
+
|
172
|
+
** Horizontal line
|
173
|
+
------
|
174
|
+
'-'が5個以上のみの行は、<hr/> に変換される
|
175
|
+
* Inline nodes
|
176
|
+
行内で完結している諸要素
|
177
|
+
** Footnotes
|
178
|
+
** Emphasis and monospace
|
179
|
+
- *bold*
|
180
|
+
- /italic/
|
181
|
+
- _underlined_
|
182
|
+
- =code=
|
183
|
+
- ~verbatim~
|
184
|
+
- +strike through+
|
185
|
+
*bold and /italic/* _underlined and *bold*_ ~verbatim without *bold*~
|
186
|
+
=code without *bold*=
|
187
|
+
*bold [[link][link]]* =code is [[link][link]] allowed= *bold =code* code=
|
188
|
+
*bold in *bold* is* not bold *1234*
|
189
|
+
*bold [[link]]*, [[link][ *bold* ]]
|
190
|
+
|
191
|
+
** Quoting HTML tags
|
192
|
+
[[Quote HTML]]
|
193
|
+
@<br/> @<b>bold@</b> の様にすることが出来る
|
194
|
+
** Linkとイメージ
|
195
|
+
リンクの、拡張子が画像ファイルの場合、<img>タグに展開される
|
196
|
+
|
197
|
+
- [ [image file] ] の場合、<img src="image file"> に展開される
|
198
|
+
- [ [link][image file] ] の場合、<a href="link"><img src="image file"></a> に展開される
|
199
|
+
- img を表示する際に、#+CAPTION: xxxx が指定されている場合、\\
|
200
|
+
#+BEGIN_VERSE
|
201
|
+
<div class="figure">
|
202
|
+
<p><img src="lily20100228t.jpg" alt="lily20100228t.jpg"></p>
|
203
|
+
<p>寝起きのリリー君</p>
|
204
|
+
</div>
|
205
|
+
#+END_VERSE
|
206
|
+
に展開される
|
207
|
+
- [ [xxx][yyy] ] の場合、<a href="xxx">yyy</a> に展開される
|
208
|
+
|
209
|
+
*** Link format
|
210
|
+
: [[link][description]] or [[link]]
|
211
|
+
|
212
|
+
[[index.html][desc *bold* ]] <- description part は修飾出来る。
|
213
|
+
|
214
|
+
*** Internal links
|
215
|
+
*** External links
|
216
|
+
外部へのリンク
|
217
|
+
* http://www.astro.uva.nl/~dominik on the web
|
218
|
+
* file:/home/dominik/images/jupiter.jpg file, absolute path
|
219
|
+
* /home/dominik/images/jupiter.jpg same as above
|
220
|
+
* file:papers/last.pdf file, relative path
|
221
|
+
* ./papers/last.pdf same as above
|
222
|
+
|
223
|
+
*** Images
|
224
|
+
[[file:images.org]] [[file:images.html]]
|
225
|
+
**** そのままの大きさで表示
|
226
|
+
: [[lily20100228t.jpg]]
|
227
|
+
[[lily20100228t.jpg]]
|
228
|
+
**** サムネールとリンク
|
229
|
+
: [[lily20100228.jpg][lily20100228t.jpg]]
|
230
|
+
[[file:lily20100228.jpg][lily20100228t.jpg]]
|
231
|
+
|
232
|
+
|
233
|
+
* Table of contents
|
234
|
+
サポートは後回しにするかね。
|
235
|
+
|
236
|
+
|
237
|
+
:#+OPTIONS: skip:t
|
238
|
+
#+OPTIONS: H:4
|
239
|
+
#+TEXT: head block
|
240
|
+
#+TEXT: this area is <b> *literal* </b>
|
241
|
+
#+TITLE: sample dayo
|
242
|
+
|
Binary file
|
Binary file
|
data/test/data/link.org
ADDED
@@ -0,0 +1,119 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
5
|
+
lang="ja" xml:lang="ja">
|
6
|
+
<head>
|
7
|
+
<title>list<sub>before</sub><sub>1st</sub><sub>headline</sub></title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
9
|
+
<meta name="generator" content="Org-mode"/>
|
10
|
+
<meta name="generated" content="2010-03-05 15:07:29 JST"/>
|
11
|
+
<meta name="author" content="Kensei Nakamura"/>
|
12
|
+
<meta name="description" content=""/>
|
13
|
+
<meta name="keywords" content=""/>
|
14
|
+
<style type="text/css">
|
15
|
+
<!--/*--><![CDATA[/*><!--*/
|
16
|
+
html { font-family: Times, serif; font-size: 12pt; }
|
17
|
+
.title { text-align: center; }
|
18
|
+
.todo { color: red; }
|
19
|
+
.done { color: green; }
|
20
|
+
.tag { background-color: #add8e6; font-weight:normal }
|
21
|
+
.target { }
|
22
|
+
.timestamp { color: #bebebe; }
|
23
|
+
.timestamp-kwd { color: #5f9ea0; }
|
24
|
+
p.verse { margin-left: 3% }
|
25
|
+
pre {
|
26
|
+
border: 1pt solid #AEBDCC;
|
27
|
+
background-color: #F3F5F7;
|
28
|
+
padding: 5pt;
|
29
|
+
font-family: courier, monospace;
|
30
|
+
font-size: 90%;
|
31
|
+
overflow:auto;
|
32
|
+
}
|
33
|
+
table { border-collapse: collapse; }
|
34
|
+
td, th { vertical-align: top; }
|
35
|
+
dt { font-weight: bold; }
|
36
|
+
div.figure { padding: 0.5em; }
|
37
|
+
div.figure p { text-align: center; }
|
38
|
+
.linenr { font-size:smaller }
|
39
|
+
.code-highlighted {background-color:#ffff00;}
|
40
|
+
.org-info-js_info-navigation { border-style:none; }
|
41
|
+
#org-info-js_console-label { font-size:10px; font-weight:bold;
|
42
|
+
white-space:nowrap; }
|
43
|
+
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
|
44
|
+
font-weight:bold; }
|
45
|
+
/*]]>*/-->
|
46
|
+
</style>
|
47
|
+
<script type="text/javascript">
|
48
|
+
<!--/*--><![CDATA[/*><!--*/
|
49
|
+
function CodeHighlightOn(elem, id)
|
50
|
+
{
|
51
|
+
var target = document.getElementById(id);
|
52
|
+
if(null != target) {
|
53
|
+
elem.cacheClassElem = elem.className;
|
54
|
+
elem.cacheClassTarget = target.className;
|
55
|
+
target.className = "code-highlighted";
|
56
|
+
elem.className = "code-highlighted";
|
57
|
+
}
|
58
|
+
}
|
59
|
+
function CodeHighlightOff(elem, id)
|
60
|
+
{
|
61
|
+
var target = document.getElementById(id);
|
62
|
+
if(elem.cacheClassElem)
|
63
|
+
elem.className = elem.cacheClassElem;
|
64
|
+
if(elem.cacheClassTarget)
|
65
|
+
target.className = elem.cacheClassTarget;
|
66
|
+
}
|
67
|
+
/*]]>*///-->
|
68
|
+
</script>
|
69
|
+
</head>
|
70
|
+
<body>
|
71
|
+
<div id="content">
|
72
|
+
|
73
|
+
<h1 class="title">list<sub>before</sub><sub>1st</sub><sub>headline</sub></h1>
|
74
|
+
|
75
|
+
|
76
|
+
<div id="table-of-contents">
|
77
|
+
<h2>Table of Contents</h2>
|
78
|
+
<div id="text-table-of-contents">
|
79
|
+
<ul>
|
80
|
+
<li><a href="#sec-1">1 1st head </a></li>
|
81
|
+
<li><a href="#sec-2">2 1st head </a></li>
|
82
|
+
</ul>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
<div id="outline-container-1" class="outline-2">
|
87
|
+
<h2 id="sec-1"><span class="section-number-2">1</span> 1st head </h2>
|
88
|
+
<div class="outline-text-2" id="text-1">
|
89
|
+
|
90
|
+
<ul>
|
91
|
+
<li>
|
92
|
+
list
|
93
|
+
</li>
|
94
|
+
<li>
|
95
|
+
item
|
96
|
+
</li>
|
97
|
+
</ul>
|
98
|
+
</div>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div id="outline-container-2" class="outline-2">
|
103
|
+
<h2 id="sec-2"><span class="section-number-2">2</span> 1st head </h2>
|
104
|
+
<div class="outline-text-2" id="text-2">
|
105
|
+
|
106
|
+
<p># # +TITLE: no lines before 1st headline
|
107
|
+
:#+OPTIONS: toc:nil author:nil timestamp:nil creator:nil skip:t
|
108
|
+
</p></div>
|
109
|
+
</div>
|
110
|
+
<div id="postamble">
|
111
|
+
<p class="author"> Author: Kensei Nakamura
|
112
|
+
<a href="mailto:kensei@dalmore.artifarm.com"><kensei@dalmore.artifarm.com></a>
|
113
|
+
</p>
|
114
|
+
<p class="date"> Date: 2010-03-05 15:07:29 JST</p>
|
115
|
+
<p class="creator">HTML generated by org-mode 6.34c in emacs 23</p>
|
116
|
+
</div>
|
117
|
+
</div>
|
118
|
+
</body>
|
119
|
+
</html>
|
@@ -0,0 +1,284 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
<html xmlns="http://www.w3.org/1999/xhtml"
|
5
|
+
lang="ja" xml:lang="ja">
|
6
|
+
<head>
|
7
|
+
<title>lists</title>
|
8
|
+
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
|
9
|
+
<meta name="generator" content="Org-mode"/>
|
10
|
+
<meta name="generated" content="2010-03-08 17:32:18 JST"/>
|
11
|
+
<meta name="author" content="Kensei Nakamura"/>
|
12
|
+
<meta name="description" content=""/>
|
13
|
+
<meta name="keywords" content=""/>
|
14
|
+
<style type="text/css">
|
15
|
+
<!--/*--><![CDATA[/*><!--*/
|
16
|
+
html { font-family: Times, serif; font-size: 12pt; }
|
17
|
+
.title { text-align: center; }
|
18
|
+
.todo { color: red; }
|
19
|
+
.done { color: green; }
|
20
|
+
.tag { background-color: #add8e6; font-weight:normal }
|
21
|
+
.target { }
|
22
|
+
.timestamp { color: #bebebe; }
|
23
|
+
.timestamp-kwd { color: #5f9ea0; }
|
24
|
+
p.verse { margin-left: 3% }
|
25
|
+
pre {
|
26
|
+
border: 1pt solid #AEBDCC;
|
27
|
+
background-color: #F3F5F7;
|
28
|
+
padding: 5pt;
|
29
|
+
font-family: courier, monospace;
|
30
|
+
font-size: 90%;
|
31
|
+
overflow:auto;
|
32
|
+
}
|
33
|
+
table { border-collapse: collapse; }
|
34
|
+
td, th { vertical-align: top; }
|
35
|
+
dt { font-weight: bold; }
|
36
|
+
div.figure { padding: 0.5em; }
|
37
|
+
div.figure p { text-align: center; }
|
38
|
+
.linenr { font-size:smaller }
|
39
|
+
.code-highlighted {background-color:#ffff00;}
|
40
|
+
.org-info-js_info-navigation { border-style:none; }
|
41
|
+
#org-info-js_console-label { font-size:10px; font-weight:bold;
|
42
|
+
white-space:nowrap; }
|
43
|
+
.org-info-js_search-highlight {background-color:#ffff00; color:#000000;
|
44
|
+
font-weight:bold; }
|
45
|
+
/*]]>*/-->
|
46
|
+
</style>
|
47
|
+
<script type="text/javascript">
|
48
|
+
<!--/*--><![CDATA[/*><!--*/
|
49
|
+
function CodeHighlightOn(elem, id)
|
50
|
+
{
|
51
|
+
var target = document.getElementById(id);
|
52
|
+
if(null != target) {
|
53
|
+
elem.cacheClassElem = elem.className;
|
54
|
+
elem.cacheClassTarget = target.className;
|
55
|
+
target.className = "code-highlighted";
|
56
|
+
elem.className = "code-highlighted";
|
57
|
+
}
|
58
|
+
}
|
59
|
+
function CodeHighlightOff(elem, id)
|
60
|
+
{
|
61
|
+
var target = document.getElementById(id);
|
62
|
+
if(elem.cacheClassElem)
|
63
|
+
elem.className = elem.cacheClassElem;
|
64
|
+
if(elem.cacheClassTarget)
|
65
|
+
target.className = elem.cacheClassTarget;
|
66
|
+
}
|
67
|
+
/*]]>*///-->
|
68
|
+
</script>
|
69
|
+
</head>
|
70
|
+
<body>
|
71
|
+
<div id="content">
|
72
|
+
|
73
|
+
<h1 class="title">lists</h1>
|
74
|
+
|
75
|
+
|
76
|
+
<div id="outline-container-1" class="outline-2">
|
77
|
+
<h2 id="sec-1"><span class="section-number-2">1</span> Unordered Lists </h2>
|
78
|
+
<div class="outline-text-2" id="text-1">
|
79
|
+
|
80
|
+
<p>I want to make sure I have great support for lists.
|
81
|
+
</p>
|
82
|
+
<ul>
|
83
|
+
<li>
|
84
|
+
This is an unordered list
|
85
|
+
</li>
|
86
|
+
<li>
|
87
|
+
This continues the unordered list
|
88
|
+
|
89
|
+
</li>
|
90
|
+
</ul>
|
91
|
+
|
92
|
+
<p>And this is a paragraph <b>after</b> the list.
|
93
|
+
</p>
|
94
|
+
|
95
|
+
</div>
|
96
|
+
|
97
|
+
<div id="outline-container-1.1" class="outline-3">
|
98
|
+
<h3 id="sec-1.1"><span class="section-number-3">1.1</span> Wrapping within the list </h3>
|
99
|
+
<div class="outline-text-3" id="text-1.1">
|
100
|
+
|
101
|
+
<ul>
|
102
|
+
<li>
|
103
|
+
This is a single-line list item in the org file.
|
104
|
+
</li>
|
105
|
+
<li>
|
106
|
+
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
107
|
+
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
108
|
+
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
109
|
+
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
110
|
+
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
111
|
+
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
112
|
+
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
113
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea
|
114
|
+
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
115
|
+
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
116
|
+
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
117
|
+
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
118
|
+
voluptua. At vero eos et accusam et justo duo dolores et ea
|
119
|
+
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
120
|
+
Lorem ipsum dolor sit amet.
|
121
|
+
</li>
|
122
|
+
<li>
|
123
|
+
And this is the next item. The previous item needs to be on one
|
124
|
+
line to keep <code>textile</code> happy.
|
125
|
+
</li>
|
126
|
+
<li>
|
127
|
+
Ditto the previous line, actually.
|
128
|
+
|
129
|
+
</li>
|
130
|
+
</ul>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div id="outline-container-1.2" class="outline-3">
|
136
|
+
<h3 id="sec-1.2"><span class="section-number-3">1.2</span> Edge cases </h3>
|
137
|
+
<div class="outline-text-3" id="text-1.2">
|
138
|
+
|
139
|
+
<ul>
|
140
|
+
<li>
|
141
|
+
This is a single-line list.
|
142
|
+
</li>
|
143
|
+
</ul>
|
144
|
+
|
145
|
+
<p>And this is a <b>separate paragraph.</b> Note the indentation in the org
|
146
|
+
file.
|
147
|
+
</p>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
</div>
|
151
|
+
|
152
|
+
<div id="outline-container-1.3" class="outline-3">
|
153
|
+
<h3 id="sec-1.3"><span class="section-number-3">1.3</span> Indent and Indent and Indent … </h3>
|
154
|
+
<div class="outline-text-3" id="text-1.3">
|
155
|
+
|
156
|
+
<ul>
|
157
|
+
<li>
|
158
|
+
first list: first item
|
159
|
+
first list item
|
160
|
+
same indent
|
161
|
+
deeper
|
162
|
+
</li>
|
163
|
+
<li>
|
164
|
+
first list: second item
|
165
|
+
<ul>
|
166
|
+
<li>
|
167
|
+
second list : first item
|
168
|
+
</li>
|
169
|
+
<li>
|
170
|
+
second list : second item
|
171
|
+
<ul>
|
172
|
+
<li>
|
173
|
+
third list : first item
|
174
|
+
</li>
|
175
|
+
</ul>
|
176
|
+
</li>
|
177
|
+
<li>
|
178
|
+
second list : third item
|
179
|
+
</li>
|
180
|
+
</ul>
|
181
|
+
</li>
|
182
|
+
<li>
|
183
|
+
first list: third item
|
184
|
+
|
185
|
+
</li>
|
186
|
+
</ul>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
<div id="outline-container-2" class="outline-2">
|
193
|
+
<h2 id="sec-2"><span class="section-number-2">2</span> Ordered list </h2>
|
194
|
+
<div class="outline-text-2" id="text-2">
|
195
|
+
|
196
|
+
<ol>
|
197
|
+
<li>
|
198
|
+
first list: first item
|
199
|
+
<ol>
|
200
|
+
<li>
|
201
|
+
second list: first item
|
202
|
+
<ul>
|
203
|
+
<li>
|
204
|
+
unordered list
|
205
|
+
</li>
|
206
|
+
<li>
|
207
|
+
unordered list
|
208
|
+
</li>
|
209
|
+
</ul>
|
210
|
+
</li>
|
211
|
+
<li>
|
212
|
+
second list: second item
|
213
|
+
|
214
|
+
<p>
|
215
|
+
this has brank line
|
216
|
+
</p></li>
|
217
|
+
</ol>
|
218
|
+
</li>
|
219
|
+
<li>
|
220
|
+
I can't count mmm.
|
221
|
+
|
222
|
+
</li>
|
223
|
+
</ol>
|
224
|
+
|
225
|
+
</div>
|
226
|
+
|
227
|
+
<div id="outline-container-2.1" class="outline-3">
|
228
|
+
<h3 id="sec-2.1"><span class="section-number-3">2.1</span> Indent Indent Indent … </h3>
|
229
|
+
<div class="outline-text-3" id="text-2.1">
|
230
|
+
|
231
|
+
<ol>
|
232
|
+
<li>
|
233
|
+
white line ↓
|
234
|
+
|
235
|
+
<p>
|
236
|
+
same indent line
|
237
|
+
</p></li>
|
238
|
+
<li>
|
239
|
+
next item?
|
240
|
+
|
241
|
+
<p>
|
242
|
+
↑ space indented line
|
243
|
+
</p>
|
244
|
+
<p>
|
245
|
+
this line is in.
|
246
|
+
</p></li>
|
247
|
+
</ol>
|
248
|
+
|
249
|
+
<p>this line out of list.
|
250
|
+
</p>
|
251
|
+
</div>
|
252
|
+
</div>
|
253
|
+
|
254
|
+
</div>
|
255
|
+
|
256
|
+
<div id="outline-container-3" class="outline-2">
|
257
|
+
<h2 id="sec-3"><span class="section-number-2">3</span> Description list </h2>
|
258
|
+
<div class="outline-text-2" id="text-3">
|
259
|
+
|
260
|
+
<dl>
|
261
|
+
<dt>Elijah Wood</dt><dd>
|
262
|
+
He plays Frodo
|
263
|
+
</dd>
|
264
|
+
<dt>Sean Austin</dt><dd>
|
265
|
+
He plays Sam, Frodo's friend. I still remember
|
266
|
+
him very well from his role as Mikey Walsh in The Goonies.
|
267
|
+
</dd>
|
268
|
+
<dt>the P</dt><dd>
|
269
|
+
this is test.
|
270
|
+
|
271
|
+
<p>
|
272
|
+
next paragraph? <- No.
|
273
|
+
</p></dd>
|
274
|
+
</dl>
|
275
|
+
|
276
|
+
<p>next paragraph.
|
277
|
+
</p>
|
278
|
+
</div>
|
279
|
+
</div>
|
280
|
+
<div id="postamble">
|
281
|
+
</div>
|
282
|
+
</div>
|
283
|
+
</body>
|
284
|
+
</html>
|