wallyqs-org-ruby 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +41 -11
- data/README.rdoc +55 -50
- data/bin/org-ruby +11 -5
- data/lib/org-ruby.rb +20 -27
- data/lib/org-ruby/headline.rb +0 -10
- data/lib/org-ruby/html_output_buffer.rb +224 -143
- data/lib/org-ruby/html_symbol_replace.rb +359 -340
- data/lib/org-ruby/line.rb +91 -30
- data/lib/org-ruby/output_buffer.rb +147 -139
- data/lib/org-ruby/parser.rb +45 -111
- data/lib/org-ruby/regexp_helper.rb +52 -57
- data/lib/org-ruby/textile_output_buffer.rb +90 -37
- data/lib/org-ruby/textile_symbol_replace.rb +360 -341
- metadata +39 -200
- data/.bnsignore +0 -18
- data/.gitignore +0 -2
- data/Gemfile +0 -7
- data/Gemfile.lock +0 -36
- data/Rakefile +0 -33
- data/TAGS +0 -167
- data/announcement.txt +0 -24
- data/org-ruby.gemspec +0 -40
- data/spec/data/freeform-example.org +0 -113
- data/spec/data/freeform.org +0 -111
- data/spec/data/hyp-planning.org +0 -335
- data/spec/data/remember.org +0 -53
- data/spec/headline_spec.rb +0 -65
- data/spec/html_examples/advanced-code.html +0 -81
- data/spec/html_examples/advanced-code.org +0 -106
- data/spec/html_examples/advanced-lists.html +0 -31
- data/spec/html_examples/advanced-lists.org +0 -31
- data/spec/html_examples/block_code.html +0 -28
- data/spec/html_examples/block_code.org +0 -35
- data/spec/html_examples/blockcomment.html +0 -3
- data/spec/html_examples/blockcomment.org +0 -15
- data/spec/html_examples/blockquote.html +0 -7
- data/spec/html_examples/blockquote.org +0 -13
- data/spec/html_examples/center.html +0 -6
- data/spec/html_examples/center.org +0 -7
- data/spec/html_examples/code-comment.html +0 -18
- data/spec/html_examples/code-comment.org +0 -22
- data/spec/html_examples/code-syntax.html +0 -98
- data/spec/html_examples/code-syntax.org +0 -99
- data/spec/html_examples/comment-trees.html +0 -4
- data/spec/html_examples/comment-trees.org +0 -13
- data/spec/html_examples/custom-seq-todo.html +0 -15
- data/spec/html_examples/custom-seq-todo.org +0 -24
- data/spec/html_examples/custom-todo.html +0 -15
- data/spec/html_examples/custom-todo.org +0 -24
- data/spec/html_examples/custom-typ-todo.html +0 -15
- data/spec/html_examples/custom-typ-todo.org +0 -24
- data/spec/html_examples/deflist.html +0 -6
- data/spec/html_examples/deflist.org +0 -6
- data/spec/html_examples/entities.html +0 -4
- data/spec/html_examples/entities.org +0 -11
- data/spec/html_examples/escape-pre.html +0 -6
- data/spec/html_examples/escape-pre.org +0 -6
- data/spec/html_examples/export-exclude-only.html +0 -13
- data/spec/html_examples/export-exclude-only.org +0 -81
- data/spec/html_examples/export-keywords.html +0 -4
- data/spec/html_examples/export-keywords.org +0 -18
- data/spec/html_examples/export-tags.html +0 -8
- data/spec/html_examples/export-tags.org +0 -82
- data/spec/html_examples/export-title.html +0 -2
- data/spec/html_examples/export-title.org +0 -4
- data/spec/html_examples/footnotes.html +0 -10
- data/spec/html_examples/footnotes.org +0 -7
- data/spec/html_examples/html-literal.html +0 -2
- data/spec/html_examples/html-literal.org +0 -6
- data/spec/html_examples/inline-formatting.html +0 -20
- data/spec/html_examples/inline-formatting.org +0 -33
- data/spec/html_examples/inline-images.html +0 -10
- data/spec/html_examples/inline-images.org +0 -15
- data/spec/html_examples/link-features.html +0 -8
- data/spec/html_examples/link-features.org +0 -19
- data/spec/html_examples/lists.html +0 -23
- data/spec/html_examples/lists.org +0 -47
- data/spec/html_examples/metadata-comment.html +0 -27
- data/spec/html_examples/metadata-comment.org +0 -30
- data/spec/html_examples/only-list.html +0 -5
- data/spec/html_examples/only-list.org +0 -3
- data/spec/html_examples/only-table.html +0 -6
- data/spec/html_examples/only-table.org +0 -5
- data/spec/html_examples/skip-header.html +0 -3
- data/spec/html_examples/skip-header.org +0 -28
- data/spec/html_examples/skip-table.html +0 -4
- data/spec/html_examples/skip-table.org +0 -19
- data/spec/html_examples/subsupscript-nil.html +0 -3
- data/spec/html_examples/subsupscript-nil.org +0 -6
- data/spec/html_examples/subsupscript.html +0 -3
- data/spec/html_examples/subsupscript.org +0 -5
- data/spec/html_examples/tables.html +0 -35
- data/spec/html_examples/tables.org +0 -50
- data/spec/html_examples/text.html +0 -2
- data/spec/html_examples/text.org +0 -16
- data/spec/line_spec.rb +0 -155
- data/spec/output_buffer_spec.rb +0 -19
- data/spec/parser_spec.rb +0 -152
- data/spec/regexp_helper_spec.rb +0 -57
- data/spec/spec_helper.rb +0 -20
- data/spec/textile_examples/block_code.org +0 -35
- data/spec/textile_examples/block_code.textile +0 -29
- data/spec/textile_examples/blockquote.org +0 -13
- data/spec/textile_examples/blockquote.textile +0 -11
- data/spec/textile_examples/center.org +0 -7
- data/spec/textile_examples/center.textile +0 -6
- data/spec/textile_examples/footnotes.org +0 -7
- data/spec/textile_examples/footnotes.textile +0 -8
- data/spec/textile_examples/keywords.org +0 -13
- data/spec/textile_examples/keywords.textile +0 -11
- data/spec/textile_examples/links.org +0 -11
- data/spec/textile_examples/links.textile +0 -10
- data/spec/textile_examples/lists.org +0 -36
- data/spec/textile_examples/lists.textile +0 -20
- data/spec/textile_examples/single-space-plain-list.org +0 -13
- data/spec/textile_examples/single-space-plain-list.textile +0 -10
- data/spec/textile_examples/tables.org +0 -50
- data/spec/textile_examples/tables.textile +0 -40
- data/spec/textile_output_buffer_spec.rb +0 -21
- data/tasks/test_case.rake +0 -49
- data/test/test_orgmode_parser.rb +0 -0
- data/util/gen-special-replace.el +0 -37
@@ -1,11 +0,0 @@
|
|
1
|
-
ENTITIES
|
2
|
-
|
3
|
-
=Org-ruby= supports "smart double quotes," 'smart single quotes,'
|
4
|
-
apostrophes for contractions like won't and can't, and other
|
5
|
-
things... like elipses. Oh -- and dashes.
|
6
|
-
|
7
|
-
Question: What does org-mode do for ampersands, like R&R? or <?
|
8
|
-
Answer: Those get escaped, too.
|
9
|
-
|
10
|
-
* <Even in headlines! funner & funner!>
|
11
|
-
|
@@ -1,6 +0,0 @@
|
|
1
|
-
<pre class="example">
|
2
|
-
<li>[ ] &#8220;smart quotes&#8221;</li>
|
3
|
-
<li>[ ] I think I need this for &#8216;single quotes&#8217; too. Don&#8217;t I?</li>
|
4
|
-
<li>[ ] Em dashes would be great &#8212; wouldn&#8217;t they?</li>
|
5
|
-
<li>[ ] I hope to develop an en dash sometime in 2010 &#8211; 2011.</li>
|
6
|
-
</pre>
|
@@ -1,6 +0,0 @@
|
|
1
|
-
#+BEGIN_EXAMPLE
|
2
|
-
<li>[ ] “smart quotes”</li>
|
3
|
-
<li>[ ] I think I need this for ‘single quotes’ too. Don’t I?</li>
|
4
|
-
<li>[ ] Em dashes would be great — wouldn’t they?</li>
|
5
|
-
<li>[ ] I hope to develop an en dash sometime in 2010 – 2011.</li>
|
6
|
-
#+END_EXAMPLE
|
@@ -1,13 +0,0 @@
|
|
1
|
-
<p class="title">export-headline-levels.org</p>
|
2
|
-
<p>What happens when you exceed the number of headline levels to export?</p>
|
3
|
-
<h1><span class="heading-number heading-number-1">1 </span>Headline 1</h1>
|
4
|
-
<h2><span class="heading-number heading-number-2">1.1 </span>Headline 2</h2>
|
5
|
-
<p>This bit of body <b>should</b> get exported.</p>
|
6
|
-
<h3><span class="heading-number heading-number-3">1.1.1 </span>Headline 3</h3>
|
7
|
-
<p>This bit of body gets exported.</p>
|
8
|
-
<h4><span class="heading-number heading-number-4">1.1.1.1 </span>Headline 4 (include)</h4>
|
9
|
-
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
10
|
-
<h3><span class="heading-number heading-number-3">1.1.2 </span>Another headline 3</h3>
|
11
|
-
<p>This one <b>should not</b> get exported!!</p>
|
12
|
-
<h4><span class="heading-number heading-number-4">1.1.2.1 </span>Another headline 4</h4>
|
13
|
-
<p>This also <b>cannot</b> get exported!!</p>
|
@@ -1,81 +0,0 @@
|
|
1
|
-
#+TITLE: export-headline-levels.org
|
2
|
-
#+AUTHOR:
|
3
|
-
#+EMAIL: bdewey@gmail.com
|
4
|
-
#+DATE: 2009-12-29 Tue
|
5
|
-
#+DESCRIPTION:
|
6
|
-
#+KEYWORDS:
|
7
|
-
#+LANGUAGE: en
|
8
|
-
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
9
|
-
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
10
|
-
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
|
11
|
-
#+EXPORT_EXCLUDE_TAGS: exclude noexport
|
12
|
-
#+TAGS: export noexport
|
13
|
-
#+LINK_UP:
|
14
|
-
#+LINK_HOME:
|
15
|
-
|
16
|
-
What happens when you exceed the number of headline levels to export?
|
17
|
-
|
18
|
-
* Shouldn't export :noexport:
|
19
|
-
|
20
|
-
This text shouldn't be exported, right?
|
21
|
-
|
22
|
-
** Nor this subheading?
|
23
|
-
|
24
|
-
Or its text?
|
25
|
-
|
26
|
-
* Exlude me, too! :exclude:
|
27
|
-
|
28
|
-
* Headline 1 :READING:DVD:
|
29
|
-
|
30
|
-
** Headline 2
|
31
|
-
|
32
|
-
This bit of body *should* get exported.
|
33
|
-
|
34
|
-
*** Headline 3 :export:
|
35
|
-
|
36
|
-
This bit of body gets exported.
|
37
|
-
|
38
|
-
**** Headline 4 (include)
|
39
|
-
|
40
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
41
|
-
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
42
|
-
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
43
|
-
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
44
|
-
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
45
|
-
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
46
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
47
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
48
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
49
|
-
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
50
|
-
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
51
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
52
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
53
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
54
|
-
Lorem ipsum dolor sit amet.
|
55
|
-
|
56
|
-
**** Headline 4 (exclude) :noexport:
|
57
|
-
|
58
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
59
|
-
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
60
|
-
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
61
|
-
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
62
|
-
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
63
|
-
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
64
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
65
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
66
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
67
|
-
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
68
|
-
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
69
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
70
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
71
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
72
|
-
Lorem ipsum dolor sit amet.
|
73
|
-
|
74
|
-
|
75
|
-
*** Another headline 3
|
76
|
-
|
77
|
-
This one *should not* get exported!!
|
78
|
-
|
79
|
-
**** Another headline 4
|
80
|
-
|
81
|
-
This also *cannot* get exported!!
|
@@ -1,4 +0,0 @@
|
|
1
|
-
<p class="title">export-keywords.org</p>
|
2
|
-
<p>Testing that I can export keywords.</p>
|
3
|
-
<h1><span class="heading-number heading-number-1">1 </span><span class="todo-keyword TODO">TODO </span>This is a todo item.</h1>
|
4
|
-
<h1><span class="heading-number heading-number-1">2 </span><span class="todo-keyword DONE">DONE </span>this item is done!</h1>
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#+TITLE: export-keywords.org
|
2
|
-
#+AUTHOR:
|
3
|
-
#+EMAIL: brian@BRIAN-DESK
|
4
|
-
#+DATE: 2009-12-29 Tue
|
5
|
-
#+DESCRIPTION:
|
6
|
-
#+KEYWORDS:
|
7
|
-
#+LANGUAGE: en
|
8
|
-
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
9
|
-
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
10
|
-
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
|
11
|
-
#+EXPORT_SELECT_TAGS: export
|
12
|
-
#+EXPORT_EXCLUDE_TAGS: noexport
|
13
|
-
#+LINK_UP:
|
14
|
-
#+LINK_HOME:
|
15
|
-
Testing that I can export keywords.
|
16
|
-
|
17
|
-
* TODO This is a todo item.
|
18
|
-
* DONE this item is done!
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<p class="title">export-headline-levels.org</p>
|
2
|
-
<p>What happens when you exceed the number of headline levels to export?</p>
|
3
|
-
<h1><span class="heading-number heading-number-1">1 </span>Headline 1</h1>
|
4
|
-
<h2><span class="heading-number heading-number-2">1.1 </span>Headline 2</h2>
|
5
|
-
<h3><span class="heading-number heading-number-3">1.1.1 </span>Headline 3</h3>
|
6
|
-
<p>This bit of body gets exported.</p>
|
7
|
-
<h4><span class="heading-number heading-number-4">1.1.1.1 </span>Headline 4 (include)</h4>
|
8
|
-
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
|
@@ -1,82 +0,0 @@
|
|
1
|
-
#+TITLE: export-headline-levels.org
|
2
|
-
#+AUTHOR:
|
3
|
-
#+EMAIL: bdewey@gmail.com
|
4
|
-
#+DATE: 2009-12-29 Tue
|
5
|
-
#+DESCRIPTION:
|
6
|
-
#+KEYWORDS:
|
7
|
-
#+LANGUAGE: en
|
8
|
-
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
9
|
-
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
10
|
-
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
|
11
|
-
#+EXPORT_SELECT_TAGS: export
|
12
|
-
#+EXPORT_EXCLUDE_TAGS: exclude noexport
|
13
|
-
#+TAGS: export noexport
|
14
|
-
#+LINK_UP:
|
15
|
-
#+LINK_HOME:
|
16
|
-
|
17
|
-
What happens when you exceed the number of headline levels to export?
|
18
|
-
|
19
|
-
* Shouldn't export :noexport:
|
20
|
-
|
21
|
-
This text shouldn't be exported, right?
|
22
|
-
|
23
|
-
** Nor this subheading?
|
24
|
-
|
25
|
-
Or its text?
|
26
|
-
|
27
|
-
* Exlude me, too! :exclude:
|
28
|
-
|
29
|
-
* Headline 1 :READING:DVD:
|
30
|
-
|
31
|
-
** Headline 2
|
32
|
-
|
33
|
-
This bit of body should not get exported.
|
34
|
-
|
35
|
-
*** Headline 3 :export:
|
36
|
-
|
37
|
-
This bit of body gets exported.
|
38
|
-
|
39
|
-
**** Headline 4 (include)
|
40
|
-
|
41
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
42
|
-
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
43
|
-
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
44
|
-
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
45
|
-
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
46
|
-
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
47
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
48
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
49
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
50
|
-
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
51
|
-
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
52
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
53
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
54
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
55
|
-
Lorem ipsum dolor sit amet.
|
56
|
-
|
57
|
-
**** Headline 4 (exclude) :noexport:
|
58
|
-
|
59
|
-
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
60
|
-
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
61
|
-
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
62
|
-
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
63
|
-
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
64
|
-
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
65
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
66
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
67
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
68
|
-
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
69
|
-
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
70
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
71
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
72
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
73
|
-
Lorem ipsum dolor sit amet.
|
74
|
-
|
75
|
-
|
76
|
-
*** Another headline 3
|
77
|
-
|
78
|
-
This one *should not* get exported!!
|
79
|
-
|
80
|
-
**** Another headline 4
|
81
|
-
|
82
|
-
This also *cannot* get exported!!
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<p class="title">Footnotes</p>
|
2
|
-
<p>Hello<sup><a class="footref" name="fnr.abc" href="#fn.abc">abc</a></sup> World<sup><a class="footref" name="fnr.abc" href="#fn.abc">abc</a></sup></p>
|
3
|
-
<p>Bfoo<sup><a class="footref" name="fnr.1" href="#fn.1">1</a></sup></p>
|
4
|
-
<div id="footnotes">
|
5
|
-
<h2 class="footnotes">Footnotes: </h2>
|
6
|
-
<div id="text-footnotes">
|
7
|
-
<p class="footnote"><sup><a class="footnum" name="fn.abc" href="#fnr.abc">abc</a></sup>definition of abc</p>
|
8
|
-
<p class="footnote"><sup><a class="footnum" name="fn.1" href="#fnr.1">1</a></sup><b>blub</b></p>
|
9
|
-
</div>
|
10
|
-
</div>
|
@@ -1,20 +0,0 @@
|
|
1
|
-
<p class="title">Inline Formatting</p>
|
2
|
-
<p>I want to make sure I handle all inline formatting. I need to handle <b>bold</b>, <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</p>
|
3
|
-
<p>In addition, I need to make sure I can handle links. We’ve got simple links, like this:</p>
|
4
|
-
<ul>
|
5
|
-
<li><a href="http://www.bing.com">http://www.bing.com</a></li>
|
6
|
-
<li><a href="http://www.google.com">http://www.google.com</a></li>
|
7
|
-
<li>http://www.gmail.com</li>
|
8
|
-
</ul>
|
9
|
-
<p>Note the last one <b>is not</b> a link, as the source doesn’t include it in double-brackets and I don’t auto-recognize URLs.</p>
|
10
|
-
<p>I should also handle links with <a href="http://www.xkcd.com">helpful text</a>.</p>
|
11
|
-
<p>Helpful addition from <a href="https://github.com/punchagan">punchagan</a>, we now recognize when the link goes to an image and make the link anchor be the image, like this:</p>
|
12
|
-
<ul>
|
13
|
-
<li><a href="http://farm7.static.flickr.com/6078/6084185195_552aa270b2.jpg"><img src="http://farm7.static.flickr.com/6078/6084185195_552aa270b2.jpg" /></a></li>
|
14
|
-
</ul>
|
15
|
-
<p>Also, if you make the descriptive text be an image, then it will get formatted with an image tag, like so:</p>
|
16
|
-
<ul>
|
17
|
-
<li><a href="http://www.xkcd.com"><img src="http://imgs.xkcd.com/comics/t_cells.png" /></a></li>
|
18
|
-
</ul>
|
19
|
-
<p>Helpful addition from <a href="https://github.com/wallyqs">wallyqs</a>:</p>
|
20
|
-
<p>While “naked” links don’t work (like http://www.google.com), angle links do work. This should look like a link: <a href="http://www.google.com">http://www.google.com</a>.</p>
|
@@ -1,33 +0,0 @@
|
|
1
|
-
Inline Formatting
|
2
|
-
|
3
|
-
I want to make sure I handle all inline formatting. I need to handle
|
4
|
-
*bold*, /italic/, =code=, ~verbatim~, _underline_, +strikethrough+.
|
5
|
-
|
6
|
-
In addition, I need to make sure I can handle links. We've got simple
|
7
|
-
links, like this:
|
8
|
-
|
9
|
-
- [[http://www.bing.com]]
|
10
|
-
- [[http://www.google.com]]
|
11
|
-
- http://www.gmail.com
|
12
|
-
|
13
|
-
Note the last one *is not* a link, as the source doesn't include it in
|
14
|
-
double-brackets and I don't auto-recognize URLs.
|
15
|
-
|
16
|
-
I should also handle links with [[http://www.xkcd.com][helpful text]].
|
17
|
-
|
18
|
-
Helpful addition from [[https://github.com/punchagan][punchagan]], we now
|
19
|
-
recognize when the link goes to an image and make the link anchor be the
|
20
|
-
image, like this:
|
21
|
-
|
22
|
-
- [[http://farm7.static.flickr.com/6078/6084185195_552aa270b2.jpg]]
|
23
|
-
|
24
|
-
Also, if you make the descriptive text be an image, then it will get formatted
|
25
|
-
with an image tag, like so:
|
26
|
-
|
27
|
-
- [[http://www.xkcd.com][http://imgs.xkcd.com/comics/t_cells.png]]
|
28
|
-
|
29
|
-
Helpful addition from [[https://github.com/wallyqs][wallyqs]]:
|
30
|
-
|
31
|
-
|
32
|
-
While "naked" links don't work (like http://www.google.com), angle links
|
33
|
-
do work. This should look like a link: <http://www.google.com>.
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<p class="title">Inline Images</p>
|
2
|
-
<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>
|
3
|
-
<p><a href="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg"><img src="http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg" /></a></p>
|
4
|
-
<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>
|
5
|
-
<ul>
|
6
|
-
<li>.jpg</li>
|
7
|
-
<li>.png</li>
|
8
|
-
<li>.gif</li>
|
9
|
-
<li>.jpeg</li>
|
10
|
-
</ul>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
Inline Images
|
2
|
-
|
3
|
-
Per the org-mode [[http://orgmode.org/manual/Images-and-tables.html#Images-and-tables][spec]], you can include inline images as links without
|
4
|
-
any descriptive link text, like this:
|
5
|
-
|
6
|
-
[[http://farm5.static.flickr.com/4049/4358074549_5efb8b4903.jpg]]
|
7
|
-
|
8
|
-
I currently do not support the caption/link syntax, but I can include
|
9
|
-
the inline image. I recognize the following image file types:
|
10
|
-
|
11
|
-
- .jpg
|
12
|
-
- .png
|
13
|
-
- .gif
|
14
|
-
- .jpeg
|
15
|
-
|
@@ -1,8 +0,0 @@
|
|
1
|
-
<p class="title">link-features.org</p>
|
2
|
-
<p>Org-mode export supports a lot of link features. I’ve covered “simple” HTML links elsewhere. Now let’s cover links to other org files, other sections within documents, etc.</p>
|
3
|
-
<h1>Links to other org files</h1>
|
4
|
-
<p>This is a link to the <code>code-comment.org</code> file in the same directory. In <code>emacs</code>, if you click it, the other file opens. We want the same behavior in the HTML export.</p>
|
5
|
-
<p><a href="code-comment.html">Code Comment</a></p>
|
6
|
-
<h1>Search links</h1>
|
7
|
-
<p>This is a search link into code-comment.org.</p>
|
8
|
-
<p><a href="code-comment.html">Code Comment</a></p>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
#+TITLE: link-features.org
|
2
|
-
|
3
|
-
Org-mode export supports a lot of link features. I've covered "simple"
|
4
|
-
HTML links elsewhere. Now let's cover links to other org files, other
|
5
|
-
sections within documents, etc.
|
6
|
-
|
7
|
-
* Links to other org files
|
8
|
-
|
9
|
-
This is a link to the ~code-comment.org~ file in the same
|
10
|
-
directory. In ~emacs~, if you click it, the other file opens. We
|
11
|
-
want the same behavior in the HTML export.
|
12
|
-
|
13
|
-
[[file:code-comment.org][Code Comment]]
|
14
|
-
|
15
|
-
* Search links
|
16
|
-
|
17
|
-
This is a search link into code-comment.org.
|
18
|
-
|
19
|
-
[[file:code-comment.org::*Code%20Comment][Code Comment]]
|
@@ -1,23 +0,0 @@
|
|
1
|
-
<h1 class="title">Lists</h1>
|
2
|
-
<p>I want to make sure I have great support for lists.</p>
|
3
|
-
<ul>
|
4
|
-
<li>This is an unordered list</li>
|
5
|
-
<li>This continues the unordered list</li>
|
6
|
-
</ul>
|
7
|
-
<p>And this is a paragraph <b>after</b> the list.</p>
|
8
|
-
<h2>Wrapping within the list</h2>
|
9
|
-
<ul>
|
10
|
-
<li>This is a single-line list item in the org file.</li>
|
11
|
-
<li>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</li>
|
12
|
-
<li>And this is the next item. The previous item needs to be on one line to keep <code>textile</code> happy.</li>
|
13
|
-
<li>Ditto the previous line, actually.</li>
|
14
|
-
</ul>
|
15
|
-
<h2>Edge cases</h2>
|
16
|
-
<ul>
|
17
|
-
<li>This is a single-line list.</li>
|
18
|
-
</ul>
|
19
|
-
<p>And this is a <b>separate paragraph.</b> Note the indentation in the org file.</p>
|
20
|
-
<h2>Invalid lists</h2>
|
21
|
-
<p>Note that spaces are required to denote lists. Thus, none of the following should get recognized as lists.</p>
|
22
|
-
<p>-This isn’t a list. -And this isn’t a list.</p>
|
23
|
-
<p>1.And this isn’t a list. 2.And this isn’t a list.</p>
|
@@ -1,47 +0,0 @@
|
|
1
|
-
* Lists
|
2
|
-
|
3
|
-
I want to make sure I have great support for lists.
|
4
|
-
|
5
|
-
- This is an unordered list
|
6
|
-
- This continues the unordered list
|
7
|
-
|
8
|
-
And this is a paragraph *after* the list.
|
9
|
-
|
10
|
-
** Wrapping within the list
|
11
|
-
|
12
|
-
- This is a single-line list item in the org file.
|
13
|
-
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam
|
14
|
-
nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam
|
15
|
-
erat, sed diam voluptua. At vero eos et accusam et justo duo
|
16
|
-
dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
|
17
|
-
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit
|
18
|
-
amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
19
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
20
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
21
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
22
|
-
Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
|
23
|
-
consetetur sadipscing elitr, sed diam nonumy eirmod tempor
|
24
|
-
invidunt ut labore et dolore magna aliquyam erat, sed diam
|
25
|
-
voluptua. At vero eos et accusam et justo duo dolores et ea
|
26
|
-
rebum. Stet clita kasd gubergren, no sea takimata sanctus est
|
27
|
-
Lorem ipsum dolor sit amet.
|
28
|
-
- And this is the next item. The previous item needs to be on one
|
29
|
-
line to keep =textile= happy.
|
30
|
-
- Ditto the previous line, actually.
|
31
|
-
|
32
|
-
** Edge cases
|
33
|
-
|
34
|
-
- This is a single-line list.
|
35
|
-
And this is a *separate paragraph.* Note the indentation in the org
|
36
|
-
file.
|
37
|
-
|
38
|
-
** Invalid lists
|
39
|
-
|
40
|
-
Note that spaces are required to denote lists. Thus, none of the following
|
41
|
-
should get recognized as lists.
|
42
|
-
|
43
|
-
-This isn't a list.
|
44
|
-
-And this isn't a list.
|
45
|
-
|
46
|
-
1.And this isn't a list.
|
47
|
-
2.And this isn't a list.
|