Skip to content
Browse files

Merge latest features from master

  • Loading branch information...
2 parents 978e73f + d05ceca commit 73cd4d02c6abedfa9a5fa9b6bb8ae2ef23c67c5f @wallyqs wallyqs committed Jul 7, 2012
Showing with 829 additions and 15,335 deletions.
  1. +0 −133 TAGS
  2. +4 −0 bench/Gemfile
  3. +3 −0 bench/Gemfile_6_0
  4. +3 −0 bench/Gemfile_6_1
  5. +3 −0 bench/Gemfile_6_2
  6. +3 −0 bench/Gemfile_6_3
  7. +3 −0 bench/Gemfile_redcarpet
  8. +291 −0 bench/bench.org
  9. +19 −0 bench/parsing_redcarpet_test.rb
  10. +41 −0 bench/parsing_test.rb
  11. +1 −5 bin/org-ruby
  12. +0 −288 doc/History_txt.html
  13. +0 −294 doc/OrgRuby.html
  14. +0 −909 doc/Orgmode.html
  15. +0 −522 doc/Orgmode/Headline.html
  16. +0 −466 doc/Orgmode/HtmlOutputBuffer.html
  17. +0 −1,369 doc/Orgmode/Line.html
  18. +0 −750 doc/Orgmode/OutputBuffer.html
  19. +0 −808 doc/Orgmode/Parser.html
  20. +0 −596 doc/Orgmode/RegexpHelper.html
  21. +0 −430 doc/Orgmode/TextileOutputBuffer.html
  22. +0 −181 doc/README_rdoc.html
  23. +0 −143 doc/Tilt.html
  24. +0 −298 doc/Tilt/OrgTemplate.html
  25. +0 −136 doc/announcement_txt.html
  26. +0 −54 doc/bin/org-ruby.html
  27. +0 −16 doc/created.rid
  28. BIN doc/images/add.png
  29. BIN doc/images/brick.png
  30. BIN doc/images/brick_link.png
  31. BIN doc/images/bug.png
  32. BIN doc/images/bullet_black.png
  33. BIN doc/images/bullet_toggle_minus.png
  34. BIN doc/images/bullet_toggle_plus.png
  35. BIN doc/images/date.png
  36. BIN doc/images/delete.png
  37. BIN doc/images/find.png
  38. BIN doc/images/loadingAnimation.gif
  39. BIN doc/images/macFFBgHack.png
  40. BIN doc/images/package.png
  41. BIN doc/images/page_green.png
  42. BIN doc/images/page_white_text.png
  43. BIN doc/images/page_white_width.png
  44. BIN doc/images/plugin.png
  45. BIN doc/images/ruby.png
  46. BIN doc/images/tag_blue.png
  47. BIN doc/images/tag_green.png
  48. BIN doc/images/transparent.png
  49. BIN doc/images/wrench.png
  50. BIN doc/images/wrench_orange.png
  51. BIN doc/images/zoom.png
  52. +0 −180 doc/index.html
  53. +0 −153 doc/js/darkfish.js
  54. +0 −18 doc/js/jquery.js
  55. +0 −142 doc/js/navigation.js
  56. +0 −94 doc/js/search.js
  57. +0 −1 doc/js/search_index.js
  58. +0 −228 doc/js/searcher.js
  59. +0 −52 doc/lib/org-ruby/headline_rb.html
  60. +0 −52 doc/lib/org-ruby/html_output_buffer_rb.html
  61. +0 −55 doc/lib/org-ruby/html_symbol_replace_rb.html
  62. +0 −52 doc/lib/org-ruby/line_rb.html
  63. +0 −54 doc/lib/org-ruby/output_buffer_rb.html
  64. +0 −56 doc/lib/org-ruby/parser_rb.html
  65. +0 −54 doc/lib/org-ruby/regexp_helper_rb.html
  66. +0 −54 doc/lib/org-ruby/textile_output_buffer_rb.html
  67. +0 −55 doc/lib/org-ruby/textile_symbol_replace_rb.html
  68. +0 −56 doc/lib/org-ruby/tilt_rb.html
  69. +0 −52 doc/lib/org-ruby_rb.html
  70. +0 −543 doc/rdoc.css
  71. +0 −311 doc/table_of_contents.html
  72. +20 −22 lib/org-ruby.rb
  73. +0 −2 lib/org-ruby/headline.rb
  74. +56 −6 lib/org-ruby/html_output_buffer.rb
  75. +9 −9 lib/org-ruby/line.rb
  76. +9 −9 lib/org-ruby/output_buffer.rb
  77. +2 −3 lib/org-ruby/parser.rb
  78. +3 −3 lib/org-ruby/regexp_helper.rb
  79. BIN pkg/org-ruby-0.6.2.gem
  80. BIN pkg/org-ruby-0.6.2.tgz
  81. +0 −18 pkg/org-ruby-0.6.2/.bnsignore
  82. +0 −2 pkg/org-ruby-0.6.2/.gitignore
  83. +0 −8 pkg/org-ruby-0.6.2/Gemfile
  84. +0 −36 pkg/org-ruby-0.6.2/Gemfile.lock
  85. +0 −106 pkg/org-ruby-0.6.2/History.txt
  86. +0 −67 pkg/org-ruby-0.6.2/README.rdoc
  87. +0 −26 pkg/org-ruby-0.6.2/Rakefile
  88. +0 −133 pkg/org-ruby-0.6.2/TAGS
  89. +0 −19 pkg/org-ruby-0.6.2/announcement.txt
  90. +0 −45 pkg/org-ruby-0.6.2/bin/org-ruby
  91. +0 −50 pkg/org-ruby-0.6.2/lib/org-ruby.rb
  92. +0 −110 pkg/org-ruby-0.6.2/lib/org-ruby/headline.rb
  93. +0 −245 pkg/org-ruby-0.6.2/lib/org-ruby/html_output_buffer.rb
  94. +0 −345 pkg/org-ruby-0.6.2/lib/org-ruby/html_symbol_replace.rb
  95. +0 −251 pkg/org-ruby-0.6.2/lib/org-ruby/line.rb
  96. +0 −237 pkg/org-ruby-0.6.2/lib/org-ruby/output_buffer.rb
  97. +0 −366 pkg/org-ruby-0.6.2/lib/org-ruby/parser.rb
  98. +0 −187 pkg/org-ruby-0.6.2/lib/org-ruby/regexp_helper.rb
  99. +0 −102 pkg/org-ruby-0.6.2/lib/org-ruby/textile_output_buffer.rb
  100. +0 −346 pkg/org-ruby-0.6.2/lib/org-ruby/textile_symbol_replace.rb
  101. +0 −29 pkg/org-ruby-0.6.2/lib/org-ruby/tilt.rb
  102. +0 −37 pkg/org-ruby-0.6.2/org-ruby.gemspec
  103. +0 −113 pkg/org-ruby-0.6.2/spec/data/freeform-example.org
  104. +0 −111 pkg/org-ruby-0.6.2/spec/data/freeform.org
  105. +0 −335 pkg/org-ruby-0.6.2/spec/data/hyp-planning.org
  106. +0 −53 pkg/org-ruby-0.6.2/spec/data/remember.org
  107. +0 −65 pkg/org-ruby-0.6.2/spec/headline_spec.rb
  108. +0 −81 pkg/org-ruby-0.6.2/spec/html_examples/advanced-code.html
  109. +0 −106 pkg/org-ruby-0.6.2/spec/html_examples/advanced-code.org
  110. +0 −31 pkg/org-ruby-0.6.2/spec/html_examples/advanced-lists.html
  111. +0 −31 pkg/org-ruby-0.6.2/spec/html_examples/advanced-lists.org
  112. +0 −28 pkg/org-ruby-0.6.2/spec/html_examples/block_code.html
  113. +0 −35 pkg/org-ruby-0.6.2/spec/html_examples/block_code.org
  114. +0 −3 pkg/org-ruby-0.6.2/spec/html_examples/blockcomment.html
  115. +0 −15 pkg/org-ruby-0.6.2/spec/html_examples/blockcomment.org
  116. +0 −7 pkg/org-ruby-0.6.2/spec/html_examples/blockquote.html
  117. +0 −13 pkg/org-ruby-0.6.2/spec/html_examples/blockquote.org
  118. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/center.html
  119. +0 −7 pkg/org-ruby-0.6.2/spec/html_examples/center.org
  120. +0 −18 pkg/org-ruby-0.6.2/spec/html_examples/code-comment.html
  121. +0 −22 pkg/org-ruby-0.6.2/spec/html_examples/code-comment.org
  122. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/comment-trees.html
  123. +0 −13 pkg/org-ruby-0.6.2/spec/html_examples/comment-trees.org
  124. +0 −15 pkg/org-ruby-0.6.2/spec/html_examples/custom-seq-todo.html
  125. +0 −24 pkg/org-ruby-0.6.2/spec/html_examples/custom-seq-todo.org
  126. +0 −15 pkg/org-ruby-0.6.2/spec/html_examples/custom-todo.html
  127. +0 −24 pkg/org-ruby-0.6.2/spec/html_examples/custom-todo.org
  128. +0 −15 pkg/org-ruby-0.6.2/spec/html_examples/custom-typ-todo.html
  129. +0 −24 pkg/org-ruby-0.6.2/spec/html_examples/custom-typ-todo.org
  130. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/deflist.html
  131. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/deflist.org
  132. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/entities.html
  133. +0 −11 pkg/org-ruby-0.6.2/spec/html_examples/entities.org
  134. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/escape-pre.html
  135. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/escape-pre.org
  136. +0 −13 pkg/org-ruby-0.6.2/spec/html_examples/export-exclude-only.html
  137. +0 −81 pkg/org-ruby-0.6.2/spec/html_examples/export-exclude-only.org
  138. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/export-keywords.html
  139. +0 −18 pkg/org-ruby-0.6.2/spec/html_examples/export-keywords.org
  140. +0 −8 pkg/org-ruby-0.6.2/spec/html_examples/export-tags.html
  141. +0 −82 pkg/org-ruby-0.6.2/spec/html_examples/export-tags.org
  142. +0 −2 pkg/org-ruby-0.6.2/spec/html_examples/export-title.html
  143. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/export-title.org
  144. +0 −10 pkg/org-ruby-0.6.2/spec/html_examples/footnotes.html
  145. +0 −7 pkg/org-ruby-0.6.2/spec/html_examples/footnotes.org
  146. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/horizontal_rule.html
  147. +0 −5 pkg/org-ruby-0.6.2/spec/html_examples/horizontal_rule.org
  148. +0 −2 pkg/org-ruby-0.6.2/spec/html_examples/html-literal.html
  149. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/html-literal.org
  150. +0 −25 pkg/org-ruby-0.6.2/spec/html_examples/inline-formatting.html
  151. +0 −43 pkg/org-ruby-0.6.2/spec/html_examples/inline-formatting.org
  152. +0 −10 pkg/org-ruby-0.6.2/spec/html_examples/inline-images.html
  153. +0 −15 pkg/org-ruby-0.6.2/spec/html_examples/inline-images.org
  154. +0 −8 pkg/org-ruby-0.6.2/spec/html_examples/link-features.html
  155. +0 −19 pkg/org-ruby-0.6.2/spec/html_examples/link-features.org
  156. +0 −23 pkg/org-ruby-0.6.2/spec/html_examples/lists.html
  157. +0 −47 pkg/org-ruby-0.6.2/spec/html_examples/lists.org
  158. +0 −27 pkg/org-ruby-0.6.2/spec/html_examples/metadata-comment.html
  159. +0 −30 pkg/org-ruby-0.6.2/spec/html_examples/metadata-comment.org
  160. +0 −5 pkg/org-ruby-0.6.2/spec/html_examples/only-list.html
  161. +0 −3 pkg/org-ruby-0.6.2/spec/html_examples/only-list.org
  162. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/only-table.html
  163. +0 −5 pkg/org-ruby-0.6.2/spec/html_examples/only-table.org
  164. +0 −3 pkg/org-ruby-0.6.2/spec/html_examples/skip-header.html
  165. +0 −28 pkg/org-ruby-0.6.2/spec/html_examples/skip-header.org
  166. +0 −4 pkg/org-ruby-0.6.2/spec/html_examples/skip-table.html
  167. +0 −19 pkg/org-ruby-0.6.2/spec/html_examples/skip-table.org
  168. +0 −3 pkg/org-ruby-0.6.2/spec/html_examples/subsupscript-nil.html
  169. +0 −6 pkg/org-ruby-0.6.2/spec/html_examples/subsupscript-nil.org
  170. +0 −3 pkg/org-ruby-0.6.2/spec/html_examples/subsupscript.html
  171. +0 −5 pkg/org-ruby-0.6.2/spec/html_examples/subsupscript.org
  172. +0 −35 pkg/org-ruby-0.6.2/spec/html_examples/tables.html
  173. +0 −50 pkg/org-ruby-0.6.2/spec/html_examples/tables.org
  174. +0 −2 pkg/org-ruby-0.6.2/spec/html_examples/text.html
  175. +0 −16 pkg/org-ruby-0.6.2/spec/html_examples/text.org
  176. +0 −162 pkg/org-ruby-0.6.2/spec/line_spec.rb
  177. +0 −19 pkg/org-ruby-0.6.2/spec/output_buffer_spec.rb
  178. +0 −158 pkg/org-ruby-0.6.2/spec/parser_spec.rb
  179. +0 −57 pkg/org-ruby-0.6.2/spec/regexp_helper_spec.rb
  180. +0 −20 pkg/org-ruby-0.6.2/spec/spec_helper.rb
  181. +0 −35 pkg/org-ruby-0.6.2/spec/textile_examples/block_code.org
  182. +0 −29 pkg/org-ruby-0.6.2/spec/textile_examples/block_code.textile
  183. +0 −13 pkg/org-ruby-0.6.2/spec/textile_examples/blockquote.org
  184. +0 −11 pkg/org-ruby-0.6.2/spec/textile_examples/blockquote.textile
  185. +0 −7 pkg/org-ruby-0.6.2/spec/textile_examples/center.org
  186. +0 −6 pkg/org-ruby-0.6.2/spec/textile_examples/center.textile
  187. +0 −7 pkg/org-ruby-0.6.2/spec/textile_examples/footnotes.org
  188. +0 −8 pkg/org-ruby-0.6.2/spec/textile_examples/footnotes.textile
  189. +0 −13 pkg/org-ruby-0.6.2/spec/textile_examples/keywords.org
  190. +0 −11 pkg/org-ruby-0.6.2/spec/textile_examples/keywords.textile
  191. +0 −11 pkg/org-ruby-0.6.2/spec/textile_examples/links.org
  192. +0 −10 pkg/org-ruby-0.6.2/spec/textile_examples/links.textile
  193. +0 −36 pkg/org-ruby-0.6.2/spec/textile_examples/lists.org
  194. +0 −20 pkg/org-ruby-0.6.2/spec/textile_examples/lists.textile
  195. +0 −13 pkg/org-ruby-0.6.2/spec/textile_examples/single-space-plain-list.org
  196. +0 −10 pkg/org-ruby-0.6.2/spec/textile_examples/single-space-plain-list.textile
  197. +0 −50 pkg/org-ruby-0.6.2/spec/textile_examples/tables.org
  198. +0 −40 pkg/org-ruby-0.6.2/spec/textile_examples/tables.textile
  199. +0 −21 pkg/org-ruby-0.6.2/spec/textile_output_buffer_spec.rb
  200. +0 −49 pkg/org-ruby-0.6.2/tasks/test_case.rake
  201. 0 pkg/org-ruby-0.6.2/test/test_orgmode_parser.rb
  202. +0 −37 pkg/org-ruby-0.6.2/util/gen-special-replace.el
  203. +1 −2 spec/headline_spec.rb
  204. +26 −13 spec/html_examples/advanced-lists.html
  205. +4 −2 spec/html_examples/block_code.html
  206. +119 −0 spec/html_examples/code-lists.html
  207. +83 −0 spec/html_examples/code-lists.org
  208. +4 −2 spec/html_examples/custom-seq-todo.html
  209. +4 −2 spec/html_examples/custom-todo.html
  210. +4 −2 spec/html_examples/custom-typ-todo.html
  211. +10 −5 spec/html_examples/inline-formatting.html
  212. +8 −4 spec/html_examples/inline-images.html
  213. +12 −6 spec/html_examples/link-features.html
  214. +14 −7 spec/html_examples/lists.html
  215. +6 −3 spec/html_examples/only-list.html
  216. +19 −0 spec/html_examples/properties_drawer.html
  217. +37 −0 spec/html_examples/properties_drawer.org
  218. +3 −3 spec/line_spec.rb
  219. +1 −1 spec/output_buffer_spec.rb
  220. +1 −2 spec/parser_spec.rb
  221. +1 −1 spec/regexp_helper_spec.rb
  222. +1 −5 spec/spec_helper.rb
  223. +1 −1 spec/textile_output_buffer_spec.rb
  224. +0 −3 tasks/test_case.rake
View
133 TAGS
@@ -1,133 +0,0 @@
-
-./bin/org-ruby,0
-
-./lib/org-ruby/headline.rb,619
-module Orgmode::Orgmode3,45
- class Headline::Orgmode::Headline6,109
- attr_reader :level::Orgmode::Headline#level9,178
- attr_reader :headline_text::Orgmode::Headline#headline_text13,325
- attr_reader :body_lines::Orgmode::Headline#body_lines16,418
- attr_reader :tags::Orgmode::Headline#tags19,481
- attr_reader :keyword::Orgmode::Headline#keyword22,567
- def initialize::Orgmode::Headline#Orgmode::Headline.new35,896
- def self.headline?::Orgmode::Headline.headline?58,1687
- def to_textile::Orgmode::Headline#to_textile63,1818
- def to_html::Orgmode::Headline#to_html69,1939
-
-./lib/org-ruby/html_output_buffer.rb,591
-module Orgmode::Orgmode3,54
- class HtmlOutputBuffer::Orgmode::HtmlOutputBuffer5,72
- def initialize::Orgmode::HtmlOutputBuffer#Orgmode::HtmlOutputBuffer.new22,417
- def push_mode::Orgmode::HtmlOutputBuffer#push_mode31,619
- def pop_mode::Orgmode::HtmlOutputBuffer#pop_mode42,918
- def flush!::Orgmode::HtmlOutputBuffer#flush!51,1133
- def escape_buffer!::Orgmode::HtmlOutputBuffer#escape_buffer!78,2163
- def output_indentation::Orgmode::HtmlOutputBuffer#output_indentation84,2299
- def inline_formatting::Orgmode::HtmlOutputBuffer#inline_formatting100,2827
-
-./lib/org-ruby/line.rb,1527
-module Orgmode::Orgmode1,0
- class Line::Orgmode::Line4,67
- attr_reader :line::Orgmode::Line#line7,114
- attr_reader :indent::Orgmode::Line#indent12,300
- attr_accessor :assigned_paragraph_type::Orgmode::Line#assigned_paragraph_type19,664
- def initialize::Orgmode::Line#Orgmode::Line.new21,708
- def to_s::Orgmode::Line#to_s29,885
- def comment?::Orgmode::Line#comment?34,966
- def metadata?::Orgmode::Line#metadata?39,1083
- def nonprinting?::Orgmode::Line#nonprinting?43,1175
- def blank?::Orgmode::Line#blank?47,1227
- def plain_list?::Orgmode::Line#plain_list?51,1279
- def unordered_list?::Orgmode::Line#unordered_list?57,1394
- def strip_unordered_list_tag::Orgmode::Line#strip_unordered_list_tag61,1471
- def ordered_list?::Orgmode::Line#ordered_list?67,1588
- def strip_ordered_list_tag::Orgmode::Line#strip_ordered_list_tag71,1661
- def plain_text?::Orgmode::Line#plain_text?75,1729
- def table_row?::Orgmode::Line#table_row?79,1812
- def table_separator?::Orgmode::Line#table_separator?85,1959
- def table?::Orgmode::Line#table?93,2195
- def begin_block?::Orgmode::Line#begin_block?99,2308
- def end_block?::Orgmode::Line#end_block?103,2380
- def block_type::Orgmode::Line#block_type107,2450
- def paragraph_type::Orgmode::Line#paragraph_type112,2572
- def self.to_textile::Orgmode::Line.to_textile124,2956
- def self.to_html::Orgmode::Line.to_html130,3106
- def self.translate::Orgmode::Line.translate137,3320
-
-./lib/org-ruby/output_buffer.rb,1282
-module Orgmode::Orgmode3,18
- class OutputBuffer::Orgmode::OutputBuffer9,297
- attr_reader :buffer::Orgmode::OutputBuffer#buffer12,381
- attr_reader :output::Orgmode::OutputBuffer#output15,446
- attr_accessor :output_type::Orgmode::OutputBuffer#output_type18,532
- def initialize::Orgmode::OutputBuffer#Orgmode::OutputBuffer.new22,686
- def current_mode::Orgmode::OutputBuffer#current_mode40,1138
- def current_mode_list?::Orgmode::OutputBuffer#current_mode_list?44,1197
- def push_mode::Orgmode::OutputBuffer#push_mode48,1286
- def pop_mode::Orgmode::OutputBuffer#pop_mode53,1421
- def prepare::Orgmode::OutputBuffer#prepare61,1729
- def enter_table?::Orgmode::OutputBuffer#enter_table?73,2129
- def exit_table?::Orgmode::OutputBuffer#exit_table?79,2314
- def <<::Orgmode::OutputBuffer#<<85,2480
- def list_indent_level::Orgmode::OutputBuffer#list_indent_level90,2585
- def preserve_whitespace?::Orgmode::OutputBuffer#preserve_whitespace?95,2729
- def continue_current_list?::Orgmode::OutputBuffer#continue_current_list?106,2991
- def maintain_list_indent_stack::Orgmode::OutputBuffer#maintain_list_indent_stack109,3037
- def should_accumulate_output?::Orgmode::OutputBuffer#should_accumulate_output?145,4184
-
-./lib/org-ruby/parser.rb,473
-module Orgmode::Orgmode4,40
- class Parser::Orgmode::Parser10,125
- attr_reader :lines::Orgmode::Parser#lines13,186
- attr_reader :headlines::Orgmode::Parser#headlines16,253
- attr_reader :header_lines::Orgmode::Parser#header_lines19,333
- def initialize::Orgmode::Parser#Orgmode::Parser.new23,505
- def self.load::Orgmode::Parser.load73,2075
- def to_textile::Orgmode::Parser#to_textile79,2241
- def to_html::Orgmode::Parser#to_html89,2477
-
-./lib/org-ruby/regexp_helper.rb,1014
-module Orgmode::Orgmode3,18
- class RegexpHelper::Orgmode::RegexpHelper17,456
- attr_reader :pre_emphasis::Orgmode::RegexpHelper#pre_emphasis42,1785
- attr_reader :post_emphasis::Orgmode::RegexpHelper#post_emphasis43,1817
- attr_reader :border_forbidden::Orgmode::RegexpHelper#border_forbidden44,1850
- attr_reader :body_regexp::Orgmode::RegexpHelper#body_regexp45,1886
- attr_reader :markers::Orgmode::RegexpHelper#markers46,1917
- attr_reader :org_emphasis_regexp::Orgmode::RegexpHelper#org_emphasis_regexp48,1945
- def initialize::Orgmode::RegexpHelper#Orgmode::RegexpHelper.new50,1999
- def match_all::Orgmode::RegexpHelper#match_all65,2476
- def rewrite_emphasis::Orgmode::RegexpHelper#rewrite_emphasis92,3413
- def rewrite_links::Orgmode::RegexpHelper#rewrite_links124,4523
- def build_org_emphasis_regexp::Orgmode::RegexpHelper#build_org_emphasis_regexp135,4759
- def build_org_link_regexp::Orgmode::RegexpHelper#build_org_link_regexp145,5326
-
-./lib/org-ruby/textile_output_buffer.rb,454
-module Orgmode::Orgmode3,20
- class TextileOutputBuffer::Orgmode::TextileOutputBuffer5,38
- def initialize::Orgmode::TextileOutputBuffer#Orgmode::TextileOutputBuffer.new7,84
- def push_mode::Orgmode::TextileOutputBuffer#push_mode12,169
- def pop_mode::Orgmode::TextileOutputBuffer#pop_mode17,262
- def inline_formatting::Orgmode::TextileOutputBuffer#inline_formatting34,585
- def flush!::Orgmode::TextileOutputBuffer#flush!48,973
-
-./lib/org-ruby.rb,243
-module OrgRuby::OrgRuby3,27
- def self.version::OrgRuby.version13,277
- def self.libpath::OrgRuby.libpath21,476
- def self.path::OrgRuby.path29,721
- def self.require_all_libs_relative_to::OrgRuby.require_all_libs_relative_to38,1108
-
-./spec/headline_spec.rb,0
-
-./spec/line_spec.rb,0
-
-./spec/parser_spec.rb,0
-
-./spec/regexp_helper_spec.rb,0
-
-./spec/spec_helper.rb,0
-
-./spec/textile_output_buffer_spec.rb,0
-
-./test/test_orgmode_parser.rb,0
View
4 bench/Gemfile
@@ -0,0 +1,4 @@
+source :rubygems
+
+# Bench with the current version in development
+gem 'org-ruby', :path => '..'
View
3 bench/Gemfile_6_0
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'org-ruby', '0.6.0'
View
3 bench/Gemfile_6_1
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'org-ruby', '0.6.1'
View
3 bench/Gemfile_6_2
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'org-ruby', '0.6.2'
View
3 bench/Gemfile_6_3
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'org-ruby', '0.6.3'
View
3 bench/Gemfile_redcarpet
@@ -0,0 +1,3 @@
+source :rubygems
+
+gem 'redcarpet'
View
291 bench/bench.org
@@ -0,0 +1,291 @@
+* OrgRuby benchmarks
+** How to run the benchmarks (or trying out org-babel)
+
+Within this folder there is a =parsing_test.rb= script which can be used
+to profile a quick benchmark of the current performance of the org-ruby library.
+
+What follows are the results of my benchmark by using the built-in support
+for org-babel included in Emacs 24. (press C-c C-c when over the block to update the benchmark)
+
+** Platform: 1.8.7
+
+For some reason performance is a bit better when using Ruby 1.8.7
+than when using 1.9.2.
+
+*** OrgRuby 0.6.0
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.8.7 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_0" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_0" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.0 with Ruby 1.8.7
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 1.820000 0.040000 1.860000 ( 1.894356)
+: ------------------------------------------ total: 1.860000sec
+:
+: user system total real
+: html conversion 1.840000 0.010000 1.850000 ( 1.878953)
+
+*** OrgRuby 0.6.2
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.8.7 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_2" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_2" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.2 with Ruby 1.8.7
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 2.060000 0.030000 2.090000 ( 2.123677)
+: ------------------------------------------ total: 2.090000sec
+:
+: user system total real
+: html conversion 2.080000 0.030000 2.110000 ( 2.135976)
+
+*** OrgRuby 0.6.3
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.8.7 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_3" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_3" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.3 with Ruby 1.8.7
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 2.060000 0.040000 2.100000 ( 2.126579)
+: ------------------------------------------ total: 2.100000sec
+:
+: user system total real
+: html conversion 2.090000 0.030000 2.120000 ( 2.139272)
+
+*** DEV
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.8.7 > /dev/null
+rvm info | grep full_version
+bundle install > /dev/null
+bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.3 with Ruby 1.8.7
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 2.050000 0.030000 2.080000 ( 2.147836)
+: ------------------------------------------ total: 2.080000sec
+:
+: user system total real
+: html conversion 2.050000 0.030000 2.080000 ( 2.102787)
+
+** Platform: 1.9.2
+
+Remember that 1.9.2 is sensible to encoding issues. (e.g. あいうえお)
+
+*** OrgRuby 0.6.0
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+export LANG=en_US.UTF-8
+rvm use 1.9.2 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_0" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_0" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.0 with Ruby 1.9.2
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 3.250000 0.020000 3.270000 ( 3.313767)
+: ------------------------------------------ total: 3.270000sec
+:
+: user system total real
+: html conversion 3.220000 0.020000 3.240000 ( 3.307011)
+
+*** OrgRuby 0.6.2
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+export LANG=en_US.UTF-8
+rvm use 1.9.2 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_2" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_2" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.2 with Ruby 1.9.2
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 3.440000 0.030000 3.470000 ( 3.529776)
+: ------------------------------------------ total: 3.470000sec
+:
+: user system total real
+: html conversion 3.440000 0.030000 3.470000 ( 3.519090)
+
+*** OrgRuby 0.6.3
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+export LANG=en_US.UTF-8
+rvm use 1.9.2 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_6_3" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_6_3" bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.3 with Ruby 1.9.2
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 3.430000 0.030000 3.460000 ( 3.526293)
+: ------------------------------------------ total: 3.460000sec
+:
+: user system total real
+: html conversion 3.440000 0.030000 3.470000 ( 3.525800)
+
+*** DEV
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+export LANG=en_US.UTF-8
+rvm use 1.9.2 > /dev/null
+rvm info | grep full_version
+bundle install > /dev/null
+bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.3 with Ruby 1.9.2
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 3.380000 0.020000 3.400000 ( 3.469689)
+: ------------------------------------------ total: 3.400000sec
+:
+: user system total real
+: html conversion 3.380000 0.030000 3.410000 ( 3.441502)
+
+** Platform: 1.9.3
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+export LANG=en_US.UTF-8
+rvm use 1.9.3 > /dev/null
+rvm info | grep full_version
+bundle install > /dev/null
+bundle exec ruby parsing_test.rb
+#+END_SRC
+
+#+RESULTS:
+: full_version: "ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]"
+: Running benchmark with OrgRuby version 0.6.3 with Ruby 1.9.3
+: Parsing 30 times
+: Rehearsal ---------------------------------------------------
+: html conversion 3.810000 0.020000 3.830000 ( 3.960345)
+: ------------------------------------------ total: 3.830000sec
+:
+: user system total real
+: html conversion 3.790000 0.020000 3.810000 ( 3.848413)
+
+** Other benchmarks
+*** Similar benchmark using other markup libraries
+**** Markdown using Redcarpet in Ruby 1.8.7
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.8.7 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle exec ruby parsing_redcarpet_test.rb
+#+END_SRC
+
+#+RESULTS:
+#+begin_example
+ full_version: "ruby 1.8.7 (2011-06-30 patchlevel 352) [i686-darwin11.2.0]"
+Running benchmark with RedCarpet with Ruby 1.8.7 (n=30)
+Parsing 30 times
+Rehearsal ------------------------------------------------------------------
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.007885)
+--------------------------------------------------------- total: 0.010000sec
+
+ user system total real
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.007482)
+ 0.010000 0.000000 0.010000 ( 0.007482)
+#+end_example
+
+**** Markdown using Redcarpet in Ruby 1.9.2
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.9.2 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle exec ruby parsing_redcarpet_test.rb
+#+END_SRC
+
+#+RESULTS:
+#+begin_example
+ full_version: "ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]"
+Running benchmark with RedCarpet with Ruby 1.9.2 (n=30)
+Parsing 30 times
+Rehearsal ------------------------------------------------------------------
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.007588)
+--------------------------------------------------------- total: 0.010000sec
+
+ user system total real
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.007063)
+ 0.010000 0.000000 0.010000 ( 0.007063)
+#+end_example
+
+**** Markdown using Redcarpet in Ruby 1.9.3
+
+#+BEGIN_SRC sh :results verbatim
+source ~/.bashrc
+rvm use 1.9.3 > /dev/null
+rvm info | grep full_version
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle install > /dev/null
+BUNDLE_GEMFILE="Gemfile_redcarpet" bundle exec ruby parsing_redcarpet_test.rb
+#+END_SRC
+
+#+RESULTS:
+#+begin_example
+ full_version: "ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]"
+Running benchmark with RedCarpet with Ruby 1.9.3 (n=30)
+Parsing 30 times
+Rehearsal ------------------------------------------------------------------
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.007438)
+--------------------------------------------------------- total: 0.010000sec
+
+ user system total real
+html conversion with Redcarpet 0.010000 0.000000 0.010000 ( 0.006909)
+ 0.010000 0.000000 0.010000 ( 0.006909)
+#+end_example
+
+*** TODO Encoding benchmarks
+
+**** Not setting default Encoding
+**** Setting Encoding::UTF_8 as default
+**** Setting Encoding::ASCII_8BIT as default
View
19 bench/parsing_redcarpet_test.rb
@@ -0,0 +1,19 @@
+require 'redcarpet'
+require 'benchmark'
+
+def run_benchmark(n=30)
+ org_content = File.open('bench.org').read
+
+ puts "Parsing #{n} times"
+ markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
+ Benchmark.bmbm do |x|
+ x.report('html conversion with Redcarpet') do
+ n.times do
+ markdown.render(org_content)
+ end
+ end
+ end
+end
+
+puts "Running benchmark with RedCarpet with Ruby #{RUBY_VERSION} (n=30)"
+run_benchmark
View
41 bench/parsing_test.rb
@@ -0,0 +1,41 @@
+require 'org-ruby'
+require 'benchmark'
+
+def run_html_output_benchmark(n=30)
+ org_content = File.open('bench.org').read
+
+ puts "Parsing #{n} times"
+ Benchmark.bmbm do |x|
+
+ x.report('html conversion') do
+ n.times do
+ Orgmode::Parser.new(org_content).to_html
+ end
+ end
+ end
+end
+
+def run_textile_output_benchmark(n=30)
+ org_content = File.open('bench.org').read
+
+ puts "Parsing #{n} times"
+ x.report('textile conversion') do
+ n.times do
+ Orgmode::Parser.new(content).to_textile
+ end
+ end
+end
+
+def run_parsing_file_benchmark(n=30)
+ puts "Parsing #{n} times"
+ x.report('textile conversion') do
+ n.times do
+ Orgmode::Parser.load('bench.org')
+ end
+ end
+end
+
+puts "Running benchmark using OrgRuby version #{OrgRuby::VERSION} with Ruby #{RUBY_VERSION}"
+run_html_output_benchmark
+# run_textile_output_benchmark
+# run_parsing_file_benchmark
View
6 bin/org-ruby
@@ -1,11 +1,7 @@
#!/usr/bin/env ruby
-
-require File.expand_path(
- File.join(File.dirname(__FILE__), %w[.. lib org-ruby]))
+require 'org-ruby'
require 'optparse'
-# Put your code here
-
options = {}
options_parser = OptionParser.new do |opts|
options[:help] = false
View
288 doc/History_txt.html
@@ -1,288 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
-
-<title>History - org-ruby-0.6.2 Documentation</title>
-
-<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
-
-<script type="text/javascript">
- var rdoc_rel_prefix = "./";
-</script>
-
-<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
-
-
-<body class="file">
-<nav id="metadata">
- <nav id="home-section" class="section">
- <h3 class="section-header">
- <a href="./index.html">Home</a>
- <a href="./table_of_contents.html#classes">Classes</a>
- <a href="./table_of_contents.html#methods">Methods</a>
- </h3>
-</nav>
-
-
- <nav id="search-section" class="section project-section" class="initially-hidden">
- <form action="#" method="get" accept-charset="utf-8">
- <h3 class="section-header">
- <input type="text" name="search" placeholder="Search" id="search-field"
- title="Type to search, Up and Down to navigate, Enter to load">
- </h3>
- </form>
-
- <ul id="search-results" class="initially-hidden"></ul>
-</nav>
-
-
- <div id="project-metadata">
- <nav id="fileindex-section" class="section project-section">
- <h3 class="section-header">Pages</h3>
-
- <ul>
-
- <li class="file"><a href="./History_txt.html">History</a>
-
- <li class="file"><a href="./README_rdoc.html">README</a>
-
- <li class="file"><a href="./announcement_txt.html">announcement</a>
-
- </ul>
-</nav>
-
- <nav id="classindex-section" class="section project-section">
- <h3 class="section-header">Class and Module Index</h3>
-
- <ul class="link-list">
-
- <li><a href="./Orgmode.html">Orgmode</a>
-
- <li><a href="./Orgmode/Headline.html">Orgmode::Headline</a>
-
- <li><a href="./Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a>
-
- <li><a href="./Orgmode/Line.html">Orgmode::Line</a>
-
- <li><a href="./Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a>
-
- <li><a href="./Orgmode/Parser.html">Orgmode::Parser</a>
-
- <li><a href="./Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a>
-
- <li><a href="./Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a>
-
- <li><a href="./Tilt.html">Tilt</a>
-
- <li><a href="./Tilt/OrgTemplate.html">Tilt::OrgTemplate</a>
-
- <li><a href="./OrgRuby.html">OrgRuby</a>
-
- </ul>
-</nav>
-
- </div>
-</nav>
-
-<div id="documentation" class="description">
-
-<h2 id="label-0.6.2+%2F+2012-04-14">0.6.2 / 2012-04-14</h2>
-<ul><li>
-<p>Added encoding directive to support Ruby 1.9.2</p>
-</li><li>
-<p>Headlines with the COMMENT keyword, and the PROPERTIES drawer are not
-exported</p>
-</li><li>
-<p>Angle links in org-mode are embedded in anchor tags on html output</p>
-</li><li>
-<p>#+BEGIN/END_SRC lang code blocks are embedded in code tags with class that
-specifies the coding language</p>
-</li><li>
-<p>Fixed bug in code blocks when a colon was at the beginning</p>
-</li><li>
-<p>More than five dashes create an horizontal rule in html output</p>
-</li></ul>
-
-<h2 id="label-0.6.0+%2F+2011-09-03">0.6.0 / 2011-09-03</h2>
-<ul><li>
-<p>Added support for a “header offset” – turns one star into an H2, etc.
-(thanks, niku)</p>
-</li><li>
-<p>The anchor text for a link can now be an image, and will get an img tag
-(thanks, punchagan)</p>
-</li><li>
-<p>Fixed bug in tables; only the first row is a header even if others have
-divider lines (thanks, leathekd)</p>
-</li><li>
-<p>Fixed bug in the list regular expression; lists require a space after the
-item delimiter (thanks, punchagan)</p>
-</li><li>
-<p>Lots from ruediger:</p>
-<ul><li>
-<p>subscript / superscript</p>
-</li><li>
-<p>definition lists</p>
-</li><li>
-<p>centered text</p>
-</li><li>
-<p>symbol replacement</p>
-</li></ul>
-</li></ul>
-
-<h2 id="label-0.5.3+%2F+2010-02-15">0.5.3 / 2010-02-15</h2>
-<ul><li>
-<p>Minor enhancement: Displays inline images</p>
-</li></ul>
-
-<h2 id="label-0.5.2+%2F+2010-01-05">0.5.2 / 2010-01-05</h2>
-<ul><li>
-<p>Refactored to improve layering.</p>
-</li></ul>
-
-<h2 id="label-0.5.1+%2F+2009-12-30">0.5.1 / 2009-12-30</h2>
-<ul><li>
-<p>Minor enhancement: Recognize lines starting with “:” as examples.</p>
-</li><li>
-<p>Minor enhancement: Recognize #+BEGIN_SRC as source blocks</p>
-</li><li>
-<p>Minor enhancement: Add “src” and “example” classes to &lt;pre&gt; blocks.</p>
-</li></ul>
-
-<h2 id="label-0.5.0+%2F+2009-12-30">0.5.0 / 2009-12-30</h2>
-<ul><li>
-<p>Parse (but not necessarily <strong>use</strong>) in-buffer settings. The
-following in-buffer settings <strong>are</strong> used:</p>
-<ul><li>
-<p>Understand the #+TITLE: directive.</p>
-</li><li>
-<p>Exporting todo keywords (option todo:t)</p>
-</li><li>
-<p>Numbering headlines (option num:t)</p>
-</li><li>
-<p>Skipping text before the first headline (option skip:t)</p>
-</li><li>
-<p>Skipping tables (option |:nil)</p>
-</li><li>
-<p>Custom todo keywords</p>
-</li><li>
-<p>EXPORT_SELECT_TAGS and EXPORT_EXLUDE_TAGS for controlling parts of the tree
-to export</p>
-</li></ul>
-</li><li>
-<p>Rewrite “file:(blah).org” links to “<a
-href="http:(blah).html">(blah).html</a>” links. This makes the inter-links
-to other org-mode files work.</p>
-</li><li>
-<p>Uses &lt;th&gt; tags inside table rows that precede table separators.</p>
-</li><li>
-<p>Bugfixes:</p>
-<ul><li>
-<p>Headings now have HTML escaped.</p>
-</li></ul>
-</li></ul>
-
-<h2 id="label-0.4.2+%2F+2009-12-29">0.4.2 / 2009-12-29</h2>
-<ul><li>
-<p>Got rid of the extraneous newline at the start of code blocks.</p>
-</li><li>
-<p>Everything now shows up in code blocks, even org-mode metadata.</p>
-</li><li>
-<p>Fixed bugs:</p>
-<ul><li>
-<p>Regressed smart double quotes with HTML escaping. Added a test case and
-fixed the regression.</p>
-</li></ul>
-</li></ul>
-
-<h2 id="label-0.4.1+%2F+2009-12-29">0.4.1 / 2009-12-29</h2>
-<ul><li>
-<p>HTML is now escaped by default</p>
-</li><li>
-<p>org-mode comments will show up in a code block.</p>
-</li></ul>
-
-<h2 id="label-0.4.0+%2F+2009-12-28">0.4.0 / 2009-12-28</h2>
-<ul><li>
-<p>The first thing output in HTML gets the class “title”</p>
-</li><li>
-<p>HTML output is now indented</p>
-</li><li>
-<p>Proper support for multi-paragraph list items.</p>
-</li><li>
-<p>Fixed bugs:</p>
-<ul><li>
-<p>"rake spec" wouldn't work on Linux. Needed "require 'rubygems'".</p>
-</li></ul>
-</li></ul>
-
-<h2 id="label-0.3.0+%2F+2009-12-27">0.3.0 / 2009-12-27</h2>
-<ul><li>
-<p>Uses rubypants to get better typography (smart quotes, elipses, etc.).</p>
-</li><li>
-<p>Fixed bugs:</p>
-<ul><li>
-<p>Tables and lists did not get properly closed at the end of file</p>
-</li><li>
-<p>You couldn’t do inline formatting inside table cells</p>
-</li><li>
-<p>Characters in PRE blocks were not HTML escaped.</p>
-</li></ul>
-</li></ul>
-
-<h2 id="label-0.2.0+%2F+2009-12-26">0.2.0 / 2009-12-26</h2>
-<ul><li>
-<p>Renamed the gem to org-ruby</p>
-</li><li>
-<p>Added <code>to_html</code> for HTML output</p>
-</li><li>
-<p>Now supports the following inline markup:</p>
-<ul><li>
-<p>bold</p>
-</li><li>
-<p>italic</p>
-</li><li>
-<p>code</p>
-</li><li>
-<p>verbatim</p>
-</li><li>
-<p>underline</p>
-</li><li>
-<p>strikethrough</p>
-</li></ul>
-</li><li>
-<p>Continued code cleanup and refactoring</p>
-</li></ul>
-
-<h2 id="label-0.1.0+%2F+2009-12-23">0.1.0 / 2009-12-23</h2>
-<ul><li>
-<p>Added support for block code</p>
-</li><li>
-<p>Added support for list items that wrap in the org source</p>
-</li><li>
-<p>Major code cleanup: Added <code>OutputBuffer</code> class that should make
-the code more maintainable.</p>
-</li></ul>
-
-<h2 id="label-0.0.2+%2F+2009-12-21">0.0.2 / 2009-12-21</h2>
-<ul><li>
-<p>Initial version. Handles tables (but not headers), headlines, paragraphs,
-block quotes, strong &amp; emphasis formatting.</p>
-</li></ul>
-
-</div>
-
-
-
-<footer id="validator-badges">
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
-</footer>
-
View
294 doc/OrgRuby.html
@@ -1,294 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
-
-<title>module OrgRuby - org-ruby-0.6.2 Documentation</title>
-
-<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet">
-
-<script type="text/javascript">
- var rdoc_rel_prefix = "./";
-</script>
-
-<script type="text/javascript" charset="utf-8" src="./js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/navigation.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/search_index.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/search.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/searcher.js"></script>
-<script type="text/javascript" charset="utf-8" src="./js/darkfish.js"></script>
-
-
-<body id="top" class="module">
-<nav id="metadata">
- <nav id="home-section" class="section">
- <h3 class="section-header">
- <a href="./index.html">Home</a>
- <a href="./table_of_contents.html#classes">Classes</a>
- <a href="./table_of_contents.html#methods">Methods</a>
- </h3>
-</nav>
-
-
- <nav id="search-section" class="section project-section" class="initially-hidden">
- <form action="#" method="get" accept-charset="utf-8">
- <h3 class="section-header">
- <input type="text" name="search" placeholder="Search" id="search-field"
- title="Type to search, Up and Down to navigate, Enter to load">
- </h3>
- </form>
-
- <ul id="search-results" class="initially-hidden"></ul>
-</nav>
-
-
- <div id="file-metadata">
- <nav id="file-list-section" class="section">
- <h3 class="section-header">Defined In</h3>
- <ul>
- <li>lib/org-ruby.rb
- </ul>
-</nav>
-
-
- </div>
-
- <div id="class-metadata">
-
-
-
- <!-- Method Quickref -->
-<nav id="method-list-section" class="section">
- <h3 class="section-header">Methods</h3>
-
- <ul class="link-list">
-
- <li><a href="#method-c-libpath">::libpath</a>
-
- <li><a href="#method-c-path">::path</a>
-
- <li><a href="#method-c-require_all_libs_relative_to">::require_all_libs_relative_to</a>
-
- <li><a href="#method-c-version">::version</a>
-
- </ul>
-</nav>
-
- </div>
-
- <div id="project-metadata">
- <nav id="fileindex-section" class="section project-section">
- <h3 class="section-header">Pages</h3>
-
- <ul>
-
- <li class="file"><a href="./History_txt.html">History</a>
-
- <li class="file"><a href="./README_rdoc.html">README</a>
-
- <li class="file"><a href="./announcement_txt.html">announcement</a>
-
- </ul>
-</nav>
-
- <nav id="classindex-section" class="section project-section">
- <h3 class="section-header">Class and Module Index</h3>
-
- <ul class="link-list">
-
- <li><a href="./Orgmode.html">Orgmode</a>
-
- <li><a href="./Orgmode/Headline.html">Orgmode::Headline</a>
-
- <li><a href="./Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a>
-
- <li><a href="./Orgmode/Line.html">Orgmode::Line</a>
-
- <li><a href="./Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a>
-
- <li><a href="./Orgmode/Parser.html">Orgmode::Parser</a>
-
- <li><a href="./Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a>
-
- <li><a href="./Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a>
-
- <li><a href="./Tilt.html">Tilt</a>
-
- <li><a href="./Tilt/OrgTemplate.html">Tilt::OrgTemplate</a>
-
- <li><a href="./OrgRuby.html">OrgRuby</a>
-
- </ul>
-</nav>
-
- </div>
-</nav>
-
-<div id="documentation">
- <h1 class="module">module OrgRuby</h1>
-
- <div id="description" class="description">
-
- </div><!-- description -->
-
-
-
-
- <section id="5Buntitled-5D" class="documentation-section">
-
-
-
-
-
-
-
-
- <!-- Methods -->
-
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
- <h3 class="section-header">Public Class Methods</h3>
-
-
- <div id="method-c-libpath" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">libpath</span><span
- class="method-args">( *args )</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Returns the library path for the module. If any arguments are given, they
-will be joined to the end of the libray path using <code>File.join</code>.</p>
-
-
-
- <div class="method-source-code" id="libpath-source">
- <pre><span class="ruby-comment"># File lib/org-ruby.rb, line 21</span>
-<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">libpath</span>( *<span class="ruby-identifier">args</span> )
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">?</span> <span class="ruby-constant">LIBPATH</span> <span class="ruby-operator">:</span> <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">LIBPATH</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">flatten</span>)
-<span class="ruby-keyword">end</span></pre>
- </div><!-- libpath-source -->
-
- </div>
-
-
-
-
- </div><!-- libpath-method -->
-
-
- <div id="method-c-path" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">path</span><span
- class="method-args">( *args )</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Returns the lpath for the module. If any arguments are given, they will be
-joined to the end of the path using <code>File.join</code>.</p>
-
-
-
- <div class="method-source-code" id="path-source">
- <pre><span class="ruby-comment"># File lib/org-ruby.rb, line 29</span>
-<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">path</span>( *<span class="ruby-identifier">args</span> )
- <span class="ruby-identifier">args</span>.<span class="ruby-identifier">empty?</span> <span class="ruby-operator">?</span> <span class="ruby-constant">PATH</span> <span class="ruby-operator">:</span> <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">PATH</span>, <span class="ruby-identifier">args</span>.<span class="ruby-identifier">flatten</span>)
-<span class="ruby-keyword">end</span></pre>
- </div><!-- path-source -->
-
- </div>
-
-
-
-
- </div><!-- path-method -->
-
-
- <div id="method-c-require_all_libs_relative_to" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">require_all_libs_relative_to</span><span
- class="method-args">( fname, dir = nil )</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Utility method used to require all files ending in .rb that lie in the
-directory below this file that has the same name as the filename passed in.
-Optionally, a specific <em>directory</em> name can be passed in such that
-the <em>filename</em> does not have to be equivalent to the directory.</p>
-
-
-
- <div class="method-source-code" id="require_all_libs_relative_to-source">
- <pre><span class="ruby-comment"># File lib/org-ruby.rb, line 38</span>
-<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">require_all_libs_relative_to</span>( <span class="ruby-identifier">fname</span>, <span class="ruby-identifier">dir</span> = <span class="ruby-keyword">nil</span> )
- <span class="ruby-identifier">dir</span> <span class="ruby-operator">||=</span> <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">fname</span>, <span class="ruby-string">'.*'</span>)
- <span class="ruby-identifier">search_me</span> = <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(
- <span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">fname</span>), <span class="ruby-identifier">dir</span>, <span class="ruby-string">'**'</span>, <span class="ruby-string">'*.rb'</span>))
-
- <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">search_me</span>).<span class="ruby-identifier">sort</span>.<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">rb</span><span class="ruby-operator">|</span> <span class="ruby-identifier">require</span> <span class="ruby-identifier">rb</span>}
-<span class="ruby-keyword">end</span></pre>
- </div><!-- require_all_libs_relative_to-source -->
-
- </div>
-
-
-
-
- </div><!-- require_all_libs_relative_to-method -->
-
-
- <div id="method-c-version" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">version</span><span
- class="method-args">()</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Returns the version string for the library.</p>
-
-
-
- <div class="method-source-code" id="version-source">
- <pre><span class="ruby-comment"># File lib/org-ruby.rb, line 13</span>
-<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">version</span>
- <span class="ruby-constant">VERSION</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- version-source -->
-
- </div>
-
-
-
-
- </div><!-- version-method -->
-
-
- </section><!-- public-class-method-details -->
-
- </section><!-- 5Buntitled-5D -->
-
-</div><!-- documentation -->
-
-
-<footer id="validator-badges">
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
-</footer>
-
View
909 doc/Orgmode.html
0 additions, 909 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
522 doc/Orgmode/Headline.html
@@ -1,522 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
-
-<title>class Orgmode::Headline - org-ruby-0.6.2 Documentation</title>
-
-<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
-
-<script type="text/javascript">
- var rdoc_rel_prefix = "../";
-</script>
-
-<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
-
-
-<body id="top" class="class">
-<nav id="metadata">
- <nav id="home-section" class="section">
- <h3 class="section-header">
- <a href="../index.html">Home</a>
- <a href="../table_of_contents.html#classes">Classes</a>
- <a href="../table_of_contents.html#methods">Methods</a>
- </h3>
-</nav>
-
-
- <nav id="search-section" class="section project-section" class="initially-hidden">
- <form action="#" method="get" accept-charset="utf-8">
- <h3 class="section-header">
- <input type="text" name="search" placeholder="Search" id="search-field"
- title="Type to search, Up and Down to navigate, Enter to load">
- </h3>
- </form>
-
- <ul id="search-results" class="initially-hidden"></ul>
-</nav>
-
-
- <div id="file-metadata">
- <nav id="file-list-section" class="section">
- <h3 class="section-header">Defined In</h3>
- <ul>
- <li>lib/org-ruby/headline.rb
- </ul>
-</nav>
-
-
- </div>
-
- <div id="class-metadata">
-
- <nav id="parent-class-section" class="section">
- <h3 class="section-header">Parent</h3>
-
- <p class="link">Line
-
-</nav>
-
-
- <!-- Method Quickref -->
-<nav id="method-list-section" class="section">
- <h3 class="section-header">Methods</h3>
-
- <ul class="link-list">
-
- <li><a href="#method-c-headline-3F">::headline?</a>
-
- <li><a href="#method-c-new">::new</a>
-
- <li><a href="#method-i-comment_headline-3F">#comment_headline?</a>
-
- <li><a href="#method-i-output_text">#output_text</a>
-
- <li><a href="#method-i-paragraph_type">#paragraph_type</a>
-
- <li><a href="#method-i-to_textile">#to_textile</a>
-
- </ul>
-</nav>
-
- </div>
-
- <div id="project-metadata">
- <nav id="fileindex-section" class="section project-section">
- <h3 class="section-header">Pages</h3>
-
- <ul>
-
- <li class="file"><a href="../History_txt.html">History</a>
-
- <li class="file"><a href="../README_rdoc.html">README</a>
-
- <li class="file"><a href="../announcement_txt.html">announcement</a>
-
- </ul>
-</nav>
-
- <nav id="classindex-section" class="section project-section">
- <h3 class="section-header">Class and Module Index</h3>
-
- <ul class="link-list">
-
- <li><a href="../Orgmode.html">Orgmode</a>
-
- <li><a href="../Orgmode/Headline.html">Orgmode::Headline</a>
-
- <li><a href="../Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a>
-
- <li><a href="../Orgmode/Line.html">Orgmode::Line</a>
-
- <li><a href="../Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a>
-
- <li><a href="../Orgmode/Parser.html">Orgmode::Parser</a>
-
- <li><a href="../Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a>
-
- <li><a href="../Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a>
-
- <li><a href="../Tilt.html">Tilt</a>
-
- <li><a href="../Tilt/OrgTemplate.html">Tilt::OrgTemplate</a>
-
- <li><a href="../OrgRuby.html">OrgRuby</a>
-
- </ul>
-</nav>
-
- </div>
-</nav>
-
-<div id="documentation">
- <h1 class="class">class Orgmode::Headline</h1>
-
- <div id="description" class="description">
-
-<p>Represents a headline in an orgmode file.</p>
-
- </div><!-- description -->
-
-
-
-
- <section id="5Buntitled-5D" class="documentation-section">
-
-
-
-
-
- <!-- Constants -->
- <section id="constants-list" class="section">
- <h3 class="section-header">Constants</h3>
- <dl>
-
- <dt id="CommentHeadlineRegexp">CommentHeadlineRegexp
-
- <dd class="description"><p>This matches a headline marked as COMMENT</p>
-
-
- <dt id="Keywords">Keywords
-
- <dd class="description"><p>Special keywords allowed at the start of a line.</p>
-
-
- <dt id="KeywordsRegexp">KeywordsRegexp
-
- <dd class="description">
-
-
- <dt id="LineRegexp">LineRegexp
-
- <dd class="description"><p>This is the regex that matches a line</p>
-
-
- <dt id="TagsRegexp">TagsRegexp
-
- <dd class="description"><p>This matches the tags on a headline</p>
-
-
- <dt id="ValidExportStates">ValidExportStates
-
- <dd class="description"><p>Valid states for partial export.</p>
-<dl class="rdoc-list note-list"><dt>exclude
-<dd>
-<p>The entire subtree from this heading should be excluded.</p>
-</dd><dt>headline_only
-<dd>
-<p>The headline should be exported, but not the body.</p>
-</dd><dt>all
-<dd>
-<p>Everything should be exported, headline/body/children.</p>
-</dd></dl>
-
-
- </dl>
- </section>
-
-
-
- <!-- Attributes -->
- <section id="attribute-method-details" class="method-section section">
- <h3 class="section-header">Attributes</h3>
-
-
- <div id="attribute-i-body_lines" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">body_lines</span><span
- class="attribute-access-type">[R]</span>
- </div>
-
- <div class="method-description">
-
- <p>This contains the lines that “belong” to the headline.</p>
-
- </div>
- </div>
-
- <div id="attribute-i-export_state" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">export_state</span><span
- class="attribute-access-type">[RW]</span>
- </div>
-
- <div class="method-description">
-
- <p>The export state of this headline. See <code>ValidExportStates</code>.</p>
-
- </div>
- </div>
-
- <div id="attribute-i-headline_text" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">headline_text</span><span
- class="attribute-access-type">[R]</span>
- </div>
-
- <div class="method-description">
-
- <p>This is the headline text – the part of the headline minus the leading
-asterisks, the keywords, and the tags.</p>
-
- </div>
- </div>
-
- <div id="attribute-i-keyword" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">keyword</span><span
- class="attribute-access-type">[R]</span>
- </div>
-
- <div class="method-description">
-
- <p>Optional keyword found at the beginning of the headline.</p>
-
- </div>
- </div>
-
- <div id="attribute-i-level" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">level</span><span
- class="attribute-access-type">[R]</span>
- </div>
-
- <div class="method-description">
-
- <p>This is the “level” of the headline</p>
-
- </div>
- </div>
-
- <div id="attribute-i-tags" class="method-detail">
- <div class="method-heading attribute-method-heading">
- <span class="method-name">tags</span><span
- class="attribute-access-type">[R]</span>
- </div>
-
- <div class="method-description">
-
- <p>These are the headline tags</p>
-
- </div>
- </div>
-
- </section><!-- attribute-method-details -->
-
-
- <!-- Methods -->
-
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
- <h3 class="section-header">Public Class Methods</h3>
-
-
- <div id="method-c-headline-3F" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">headline?</span><span
- class="method-args">(line)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Determines if a line is an orgmode “headline”: A headline begins with one
-or more asterisks.</p>
-
-
-
- <div class="method-source-code" id="headline-3F-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 76</span>
-<span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">headline?</span>(<span class="ruby-identifier">line</span>)
- <span class="ruby-identifier">line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">LineRegexp</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- headline-3F-source -->
-
- </div>
-
-
-
-
- </div><!-- headline-3F-method -->
-
-
- <div id="method-c-new" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">new</span><span
- class="method-args">(line, parser = nil, offset=0)</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
-
-
-
-
- <div class="method-source-code" id="new-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 47</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">line</span>, <span class="ruby-identifier">parser</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">offset</span>=<span class="ruby-value">0</span>)
- <span class="ruby-keyword">super</span>(<span class="ruby-identifier">line</span>, <span class="ruby-identifier">parser</span>)
- <span class="ruby-ivar">@body_lines</span> = []
- <span class="ruby-ivar">@body_lines</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword">self</span> <span class="ruby-comment"># Make @body_lines contain the headline?</span>
- <span class="ruby-ivar">@tags</span> = []
- <span class="ruby-ivar">@export_state</span> = <span class="ruby-value">:exclude</span>
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@line</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">LineRegexp</span>) <span class="ruby-keyword">then</span>
- <span class="ruby-ivar">@level</span> = <span class="ruby-node">$&amp;</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">offset</span>
- <span class="ruby-ivar">@headline_text</span> = <span class="ruby-node">$'</span>.<span class="ruby-identifier">strip</span>
- <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@headline_text</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">TagsRegexp</span>) <span class="ruby-keyword">then</span>
- <span class="ruby-ivar">@tags</span> = <span class="ruby-node">$&amp;</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">%r:/</span>) <span class="ruby-comment"># split tag text on semicolon</span>
- <span class="ruby-ivar">@tags</span>.<span class="ruby-identifier">delete_at</span>(<span class="ruby-value">0</span>) <span class="ruby-comment"># the first item will be empty; discard</span>
- <span class="ruby-ivar">@headline_text</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-constant">TagsRegexp</span>, <span class="ruby-string">&quot;&quot;</span>) <span class="ruby-comment"># Removes the tags from the headline</span>
- <span class="ruby-keyword">end</span>
- <span class="ruby-ivar">@keyword</span> = <span class="ruby-keyword">nil</span>
- <span class="ruby-identifier">parse_keywords</span>
- <span class="ruby-keyword">else</span>
- <span class="ruby-identifier">raise</span> <span class="ruby-node">&quot;'#{line}' is not a valid headline&quot;</span>
- <span class="ruby-keyword">end</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- new-source -->
-
- </div>
-
-
-
-
- </div><!-- new-method -->
-
-
- </section><!-- public-class-method-details -->
-
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
- <h3 class="section-header">Public Instance Methods</h3>
-
-
- <div id="method-i-comment_headline-3F" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">comment_headline?</span><span
- class="method-args">()</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Determines if a headline has the COMMENT keyword.</p>
-
-
-
- <div class="method-source-code" id="comment_headline-3F-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 81</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">comment_headline?</span>
- <span class="ruby-ivar">@headline_text</span> <span class="ruby-operator">=~</span> <span class="ruby-constant">CommentHeadlineRegexp</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- comment_headline-3F-source -->
-
- </div>
-
-
-
-
- </div><!-- comment_headline-3F-method -->
-
-
- <div id="method-i-output_text" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">output_text</span><span
- class="method-args">()</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Override <a
-href="Line.html#method-i-output_text">Orgmode::Line#output_text</a>. For a
-heading, @<a
-href="Headline.html#attribute-i-headline_text">#headline_text</a> is what
-we should output.</p>
-
-
-
- <div class="method-source-code" id="output_text-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 70</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">output_text</span>
- <span class="ruby-keyword">return</span> <span class="ruby-ivar">@headline_text</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- output_text-source -->
-
- </div>
-
-
-
-
- </div><!-- output_text-method -->
-
-
- <div id="method-i-paragraph_type" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">paragraph_type</span><span
- class="method-args">()</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Overrides <a
-href="Line.html#method-i-paragraph_type">Orgmode::Line#paragraph_type</a>.</p>
-
-
-
- <div class="method-source-code" id="paragraph_type-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 86</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">paragraph_type</span>
- <span class="ruby-value">:&quot;heading#{@level}&quot;</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- paragraph_type-source -->
-
- </div>
-
-
-
-
- </div><!-- paragraph_type-method -->
-
-
- <div id="method-i-to_textile" class="method-detail ">
-
- <div class="method-heading">
- <span class="method-name">to_textile</span><span
- class="method-args">()</span>
- <span class="method-click-advice">click to toggle source</span>
- </div>
-
-
- <div class="method-description">
-
- <p>Converts this headline and its body to textile.</p>
-
-
-
- <div class="method-source-code" id="to_textile-source">
- <pre><span class="ruby-comment"># File lib/org-ruby/headline.rb, line 91</span>
-<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_textile</span>
- <span class="ruby-identifier">output</span> = <span class="ruby-node">&quot;h#{@level}. #{@headline_text}\n&quot;</span>
- <span class="ruby-identifier">output</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Line</span>.<span class="ruby-identifier">to_textile</span>(<span class="ruby-ivar">@body_lines</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>])
- <span class="ruby-identifier">output</span>
-<span class="ruby-keyword">end</span></pre>
- </div><!-- to_textile-source -->
-
- </div>
-
-
-
-
- </div><!-- to_textile-method -->
-
-
- </section><!-- public-instance-method-details -->
-
- </section><!-- 5Buntitled-5D -->
-
-</div><!-- documentation -->
-
-
-<footer id="validator-badges">
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
-</footer>
-
View
466 doc/Orgmode/HtmlOutputBuffer.html
@@ -1,466 +0,0 @@
-<!DOCTYPE html>
-
-<html>
-<head>
-<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
-
-<title>class Orgmode::HtmlOutputBuffer - org-ruby-0.6.2 Documentation</title>
-
-<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
-
-<script type="text/javascript">
- var rdoc_rel_prefix = "../";
-</script>
-
-<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
-<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
-
-
-<body id="top" class="class">
-<nav id="metadata">
- <nav id="home-section" class="section">
- <h3 class="section-header">
- <a href="../index.html">Home</a>
- <a href="../table_of_contents.html#classes">Classes</a>
- <a href="../table_of_contents.html#methods">Methods</a>
- </h3>
-</nav>
-
-
- <nav id="search-section" class="section project-section" class="initially-hidden">
- <form action="#" method="get" accept-charset="utf-8">
- <h3 class="section-header">
- <input type="text" name="search" placeholder="Search" id="search-field"
- title="Type to search, Up and Down to navigate, Enter to load">
- </h3>
- </form>
-
- <ul id="search-results" class="initially-hidden"></ul>
-</nav>
-
-
- <div id="file-metadata">
- <nav id="file-list-section" class="section">
- <h3 class="section-header">Defined In</h3>
- <ul>
- <li>lib/org-ruby/html_output_buffer.rb
- </ul>
-</nav>
-
-
- </div>
-
- <div id="class-metadata">
-
- <nav id="parent-class-section" class="section">
- <h3 class="section-header">Parent</h3>
-
- <p class="link">OutputBuffer
-
-</nav>
-
-
- <!-- Method Quickref -->
-<nav id="method-list-section" class="section">
- <h3 class="section-header">Methods</h3>
-
- <ul class="link-list">
-
- <li><a href="#method-c-new">::new</a>
-
- <li><a href="#method-i-flush-21">#flush!</a>
-
- <li><a href="#method-i-output_footnotes-21">#output_footnotes!</a>
-
- <li><a href="#method-i-pop_mode">#pop_mode</a>
-
- <li><a href="#method-i-push_mode">#push_mode</a>
-
- </ul>
-</nav>
-
- </div>
-
- <div id="project-metadata">
- <nav id="fileindex-section" class="section project-section">
- <h3 class="section-header">Pages</h3>
-
- <ul>
-
- <li class="file"><a href="../History_txt.html">History</a>
-
- <li class="file"><a href="../README_rdoc.html">README</a>
-
- <li class="file"><a href="../announcement_txt.html">announcement</a>
-
- </ul>
-</nav>
-
- <nav id="classindex-section" class="section project-section">
- <h3 class="section-header">Class and Module Index</h3>
-
- <ul class="link-list">
-
- <li><a href="../Orgmode.html">Orgmode</a>
-
- <li><a href="../Orgmode/Headline.html">Orgmode::Headline</a>
-
- <li><a href="../Orgmode/HtmlOutputBuffer.html">Orgmode::HtmlOutputBuffer</a>
-
- <li><a href="../Orgmode/Line.html">Orgmode::Line</a>
-
- <li><a href="../Orgmode/OutputBuffer.html">Orgmode::OutputBuffer</a>
-
- <li><a href="../Orgmode/Parser.html">Orgmode::Parser</a>
-
- <li><a href="../Orgmode/RegexpHelper.html">Orgmode::RegexpHelper</a>
-
- <li><a href="../Orgmode/TextileOutputBuffer.html">Orgmode::TextileOutputBuffer</a>
-
- <li><a href="../Tilt.html">Tilt</a>
-
- <li><a href="../Tilt/OrgTemplate.html">Tilt::OrgTemplate</a>
-
- <li><a href="../OrgRuby.html">OrgRuby</a>
-
- </ul>
-</nav>
-
- </div>
-</nav>
-
-<div id="documentation">
- <h1 class="class">class Orgmode::HtmlOutputBuffer</h1>
-
- <div id="description" class="description">
-
- </div><!-- description -->
-
-
-
-
- <section id="5Buntitled-5D" class="docu