org-ruby 0.6.3 → 0.6.4
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/History.txt +6 -0
- data/bin/org-ruby +11 -5
- data/lib/org-ruby.rb +21 -23
- data/lib/org-ruby/headline.rb +0 -2
- data/lib/org-ruby/html_output_buffer.rb +60 -19
- data/lib/org-ruby/line.rb +9 -9
- data/lib/org-ruby/output_buffer.rb +9 -9
- data/lib/org-ruby/parser.rb +4 -1
- data/lib/org-ruby/regexp_helper.rb +3 -3
- metadata +66 -153
- data/.bnsignore +0 -18
- data/.gitignore +0 -2
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -36
- data/Rakefile +0 -26
- data/TAGS +0 -133
- data/announcement.txt +0 -19
- data/org-ruby.gemspec +0 -37
- 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/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/horizontal_rule.html +0 -4
- data/spec/html_examples/horizontal_rule.org +0 -5
- 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 -25
- data/spec/html_examples/inline-formatting.org +0 -43
- 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 -20
- data/spec/html_examples/link-features.org +0 -35
- 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 -162
- data/spec/output_buffer_spec.rb +0 -19
- data/spec/parser_spec.rb +0 -158
- 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/util/gen-special-replace.el +0 -37
|
@@ -1,25 +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>
|
|
21
|
-
<p>It should be possible to use both kind of links on the same paragraph:</p>
|
|
22
|
-
<p>This is an angle link <a href="http://google.com">http://google.com</a> and this is a bracket link <a href="https://github.com/bdewey/org-ruby">to a repository</a>.</p>
|
|
23
|
-
<p>This is a bracket link <a href="https://github.com/bdewey/org-ruby">to a repository</a> and this is an angle link <a href="http://google.com">http://google.com</a>.</p>
|
|
24
|
-
<p>This is a bracket link <a href="https://github.com/bdewey/org-ruby">to a repository</a> and this is a bracket link too <a href="https://github.com/bdewey/org-ruby">to a repository</a>.</p>
|
|
25
|
-
<p>This is an angle link <a href="http://google.com">http://google.com</a> and this is an angle link too <a href="http://google.com">http://google.com</a>.</p>
|
|
@@ -1,43 +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>.
|
|
34
|
-
|
|
35
|
-
It should be possible to use both kind of links on the same paragraph:
|
|
36
|
-
|
|
37
|
-
This is an angle link <http://google.com> and this is a bracket link [[https://github.com/bdewey/org-ruby][to a repository]].
|
|
38
|
-
|
|
39
|
-
This is a bracket link [[https://github.com/bdewey/org-ruby][to a repository]] and this is an angle link <http://google.com>.
|
|
40
|
-
|
|
41
|
-
This is a bracket link [[https://github.com/bdewey/org-ruby][to a repository]] and this is a bracket link too [[https://github.com/bdewey/org-ruby][to a repository]].
|
|
42
|
-
|
|
43
|
-
This is an angle link <http://google.com> and this is an angle link too <http://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,20 +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>
|
|
9
|
-
<h1>Correct handling of .org URIs in HTML markup routine (thanks @rayl!)</h1>
|
|
10
|
-
<ul>
|
|
11
|
-
<li><a href="http://foo.com">foo.com website</a></li>
|
|
12
|
-
<li><a href="http://foo.org">foo.org website</a></li>
|
|
13
|
-
</ul>
|
|
14
|
-
<h1>In these links, .org is converted to .html</h1>
|
|
15
|
-
<ul>
|
|
16
|
-
<li><a href="http://foo.org/foo.html">foo.org/foo.org</a></li>
|
|
17
|
-
<li><a href="http://localhost:4567/foo.html">localhost:4567/foo.org</a></li>
|
|
18
|
-
<li><a href="path.html">file:path.org label</a></li>
|
|
19
|
-
<li><a href="notes/path.html">file:notes/path.org label</a></li>
|
|
20
|
-
</ul>
|
|
@@ -1,35 +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]]
|
|
20
|
-
|
|
21
|
-
* Correct handling of .org URIs in HTML markup routine (thanks @rayl!)
|
|
22
|
-
|
|
23
|
-
- [[http://foo.com][foo.com website]]
|
|
24
|
-
|
|
25
|
-
- [[http://foo.org][foo.org website]]
|
|
26
|
-
|
|
27
|
-
* In these links, .org is converted to .html
|
|
28
|
-
|
|
29
|
-
- [[http://foo.org/foo.org][foo.org/foo.org]]
|
|
30
|
-
|
|
31
|
-
- [[http://localhost:4567/foo.org][localhost:4567/foo.org]]
|
|
32
|
-
|
|
33
|
-
- [[file:path.org][file:path.org label]]
|
|
34
|
-
|
|
35
|
-
- [[file:notes/path.org][file:notes/path.org label]]
|
|
@@ -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.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<h1 class="title">Metadata, etc.</h1>
|
|
2
|
-
<p>I normally filter out things that look like metadata. Can’t do it any more. I need to see all of the following:</p>
|
|
3
|
-
<pre class="example">
|
|
4
|
-
* DONE Handle inline formatting
|
|
5
|
-
CLOSED: [2009-12-26 Sat 21:41]
|
|
6
|
-
:PROPERTIES:
|
|
7
|
-
:ARCHIVE_TIME: 2009-12-26 Sat 22:16
|
|
8
|
-
:ARCHIVE_FILE: ~/brians-brain/content/projects/orgmode_parser.org
|
|
9
|
-
:ARCHIVE_OLPATH: <%= @page.title %>/Future Development
|
|
10
|
-
:ARCHIVE_CATEGORY: orgmode_parser
|
|
11
|
-
:ARCHIVE_TODO: DONE
|
|
12
|
-
:END:
|
|
13
|
-
|
|
14
|
-
I still need to handle:
|
|
15
|
-
|
|
16
|
-
- [ ] =Inline code=
|
|
17
|
-
|
|
18
|
-
How does the =emacs= HTML parser handle *inline* formatting? Ah,
|
|
19
|
-
it looks like it defines everything in =org-emphasis-alist= (line
|
|
20
|
-
2855 of =org.el=).
|
|
21
|
-
|
|
22
|
-
And then look at =org-emphasis-regexp-components=, line 2828 of
|
|
23
|
-
=org.el=. It looks like they just use a crazy regexp for inline
|
|
24
|
-
formatting. Which is good, because it means I can copy!
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
</pre>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
* Metadata, etc.
|
|
2
|
-
|
|
3
|
-
I normally filter out things that look like metadata. Can't do it any
|
|
4
|
-
more. I need to see all of the following:
|
|
5
|
-
|
|
6
|
-
#+BEGIN_EXAMPLE
|
|
7
|
-
* DONE Handle inline formatting
|
|
8
|
-
CLOSED: [2009-12-26 Sat 21:41]
|
|
9
|
-
:PROPERTIES:
|
|
10
|
-
:ARCHIVE_TIME: 2009-12-26 Sat 22:16
|
|
11
|
-
:ARCHIVE_FILE: ~/brians-brain/content/projects/orgmode_parser.org
|
|
12
|
-
:ARCHIVE_OLPATH: <%= @page.title %>/Future Development
|
|
13
|
-
:ARCHIVE_CATEGORY: orgmode_parser
|
|
14
|
-
:ARCHIVE_TODO: DONE
|
|
15
|
-
:END:
|
|
16
|
-
|
|
17
|
-
I still need to handle:
|
|
18
|
-
|
|
19
|
-
- [ ] =Inline code=
|
|
20
|
-
|
|
21
|
-
How does the =emacs= HTML parser handle *inline* formatting? Ah,
|
|
22
|
-
it looks like it defines everything in =org-emphasis-alist= (line
|
|
23
|
-
2855 of =org.el=).
|
|
24
|
-
|
|
25
|
-
And then look at =org-emphasis-regexp-components=, line 2828 of
|
|
26
|
-
=org.el=. It looks like they just use a crazy regexp for inline
|
|
27
|
-
formatting. Which is good, because it means I can copy!
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
#+END_EXAMPLE
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<table>
|
|
2
|
-
<tr><th>One</th><th>Two</th><th>Three</th><th>Four</th></tr>
|
|
3
|
-
<tr><td>Five</td><td>Six</td><td>Seven</td><td>Eight</td></tr>
|
|
4
|
-
<tr><td>Nine</td><td>Ten</td><td>Eleven</td><td>Twelve</td></tr>
|
|
5
|
-
<tr><td><b>format</b></td><td><i>text</i></td><td><code>in</code></td><td><span style="text-decoration:underline;">cells</span></td></tr>
|
|
6
|
-
</table>
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
#+TITLE: skip-header.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:t 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
|
-
This is header text.
|
|
16
|
-
It exists in the org-file, but shouldn't show up in the HTML output.
|
|
17
|
-
|
|
18
|
-
- Same with this list
|
|
19
|
-
- Nope, shouldn't be in the output.
|
|
20
|
-
|
|
21
|
-
#+BEGIN_EXAMPLE
|
|
22
|
-
Even this code snippet shouldn't be there.
|
|
23
|
-
Like a ninja. You can't see me.
|
|
24
|
-
#+END_EXAMPLE
|
|
25
|
-
|
|
26
|
-
* First heading
|
|
27
|
-
|
|
28
|
-
This should be the first text in the output.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
#+TITLE: skip-table.org
|
|
2
|
-
#+OPTIONS: |:nil
|
|
3
|
-
|
|
4
|
-
Checking that tables are skipped when directed.
|
|
5
|
-
|
|
6
|
-
| One | Two | Three |
|
|
7
|
-
|-------+-------+-------|
|
|
8
|
-
| Four | Five | Six |
|
|
9
|
-
| Seven | Eight | Nine |
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
For grins, here's another table without a header. Just keep the bases
|
|
13
|
-
covered.
|
|
14
|
-
|
|
15
|
-
| One | Two | Three |
|
|
16
|
-
| Four | Five | Six |
|
|
17
|
-
| Seven | Eight | Nine |
|
|
18
|
-
|
|
19
|
-
Again, in the HTML output, you should see *no tables*.
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<p class="title">TABLES</p>
|
|
2
|
-
<p>Different types of ORG tables.</p>
|
|
3
|
-
<h1>Simple table, no header.</h1>
|
|
4
|
-
<table>
|
|
5
|
-
<tr><td>Cell one</td><td>Cell two</td></tr>
|
|
6
|
-
<tr><td>Cell three</td><td>Cell four</td></tr>
|
|
7
|
-
</table>
|
|
8
|
-
<h1>Indented table</h1>
|
|
9
|
-
<table>
|
|
10
|
-
<tr><td>Cell one</td></tr>
|
|
11
|
-
<tr><td>Cell two</td></tr>
|
|
12
|
-
</table>
|
|
13
|
-
<p>And here’s some paragraph content. The line breaks will need to get removed here, but not for the tables.</p>
|
|
14
|
-
<h1>Table with header</h1>
|
|
15
|
-
<table>
|
|
16
|
-
<tr><th>One</th><th>Two</th><th>Three</th></tr>
|
|
17
|
-
<tr><td>Four</td><td>Five</td><td>Six</td></tr>
|
|
18
|
-
<tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
|
|
19
|
-
</table>
|
|
20
|
-
<p>The separator row should not get printed out.</p>
|
|
21
|
-
<h1>Table with complete box</h1>
|
|
22
|
-
<table>
|
|
23
|
-
<tr><th>One</th><th>Two</th><th>Three</th></tr>
|
|
24
|
-
<tr><td>Four</td><td>Five</td><td>Six</td></tr>
|
|
25
|
-
<tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
|
|
26
|
-
</table>
|
|
27
|
-
<p>Only the first row should be a header row.</p>
|
|
28
|
-
<h1>Table with extra lines</h1>
|
|
29
|
-
<table>
|
|
30
|
-
<tr><th>One</th><th>Two</th><th>Three</th></tr>
|
|
31
|
-
<tr><td>Four</td><td>Five</td><td>Six</td></tr>
|
|
32
|
-
<tr><td>Seven</td><td>Eight</td><td>Nine</td></tr>
|
|
33
|
-
<tr><td>Ten</td><td>Eleven</td><td>Twelve</td></tr>
|
|
34
|
-
</table>
|
|
35
|
-
<p>Only the first row should be a header row.</p>
|