all repos — markup @ 61ade389c1e1c159359338f570d18464a44ddbc4

The code we use to render README.your_favorite_markup

test/markups/README.org.html (view raw)

  1<p class="title">org-ruby</p>
  2<table>
  3  <tr><td>Status:</td><td>Under Development</td></tr>
  4  <tr><td>Location:</td><td><a href="http://github.com/bdewey/org-ruby">http://github.com/bdewey/org-ruby</a></td></tr>
  5  <tr><td>Version:</td><td>0.5.1</td></tr>
  6</table>
  7<h1><span class="heading-number heading-number-1">1</span> Description</h1>
  8<p>Helpful Ruby routines for parsing orgmode files. The most
  9  significant thing this library does today is convert orgmode files
 10  to textile. Currently, you cannot do much to customize the
 11  conversion. The supplied textile conversion is optimized for
 12  extracting &#8220;content&#8221; from the orgfile as opposed to &#8220;metadata.&#8221;</p>
 13<h1><span class="heading-number heading-number-1">2</span> History</h1>
 14<h2><span class="heading-number heading-number-2">2.1</span> 2009-12-30: Version 0.5.1</h2>
 15<ul>
 16  <li>Minor enhancement: Recognize lines starting with &#8220;:&#8221; as examples.</li>
 17  <li>Minor enhancement: Recognize #+BEGIN_SRC as source blocks</li>
 18  <li>Minor enhancement: Add &#8220;src&#8221; and &#8220;example&#8221; classes to &lt;pre&gt; blocks.</li>
 19</ul>
 20<h2><span class="heading-number heading-number-2">2.2</span> 2009-12-30: Version 0.5.0</h2>
 21<ul>
 22  <li>Parse (but not necessarily <b>use</b>) in-buffer settings. The following
 23    in-buffer settings <b>are</b> used:
 24    <ul>
 25      <li>Understand the #+TITLE: directive.</li>
 26      <li>Exporting todo keywords (option todo:t)</li>
 27      <li>Numbering headlines (option num:t)</li>
 28      <li>Skipping text before the first headline (option skip:t)</li>
 29      <li>Skipping tables (option |:nil)</li>
 30      <li>Custom todo keywords</li>
 31      <li>EXPORT_SELECT_TAGS and EXPORT_EXLUDE_TAGS for controlling parts of
 32        the tree to export</li>
 33    </ul>
 34  </li>
 35  <li>Rewrite &#8220;file:(blah).org&#8221; links to &#8220;http:(blah).html&#8221; links. This
 36    makes the inter-links to other org-mode files work.</li>
 37  <li>Uses &lt;th&gt; tags inside table rows that precede table separators.</li>
 38  <li>Bugfixes:
 39    <ul>
 40      <li>Headings now have HTML escaped.</li>
 41    </ul>
 42  </li>
 43</ul>
 44<h2><span class="heading-number heading-number-2">2.3</span> 2009-12-29: Version 0.4.2</h2>
 45<ul>
 46  <li>Got rid of the extraneous newline at the start of code blocks.</li>
 47  <li>Everything now shows up in code blocks, even org-mode metadata.</li>
 48  <li>Fixed bugs:
 49    <ul>
 50      <li>Regressed smart double quotes with HTML escaping. Added a test
 51        case and fixed the regression.</li>
 52    </ul>
 53  </li>
 54</ul>
 55<h2><span class="heading-number heading-number-2">2.4</span> 2009-12-29: Version 0.4.1</h2>
 56<ul>
 57  <li>HTML is now escaped by default</li>
 58  <li>org-mode comments will show up in a code block.</li>
 59</ul>
 60<h2><span class="heading-number heading-number-2">2.5</span> 2009-12-29: Version 0.4</h2>
 61<ul>
 62  <li>The first thing output in HTML gets the class &#8220;title&#8221;</li>
 63  <li>HTML output is now indented</li>
 64  <li>Proper support for multi-paragraph list items.
 65    <p>See? This paragraph is part of the last bullet.</p>
 66  </li>
 67  <li>Fixed bugs:
 68    <ul>
 69      <li>&#8220;rake spec&#8221; wouldn&#8217;t work on Linux. Needed &#8220;require &#8216;rubygems&#8217;&#8221;.</li>
 70    </ul>
 71  </li>
 72</ul>
 73<h2><span class="heading-number heading-number-2">2.6</span> 2009-12-27: Version 0.3</h2>
 74<ul>
 75  <li>Uses rubypants to get better typography (smart quotes, elipses, etc&#8230;).</li>
 76  <li>Fixed bugs:
 77    <ul>
 78      <li>Tables and lists did not get properly closed at the end of file</li>
 79      <li>You couldn&#8217;t do inline formatting inside table cells</li>
 80      <li>Characters in PRE blocks were not HTML escaped.</li>
 81    </ul>
 82  </li>
 83</ul>
 84<h2><span class="heading-number heading-number-2">2.7</span> 2009-12-26: Version 0.2</h2>
 85<ul>
 86  <li>Added <code>to_html</code> output on the parser.</li>
 87  <li>Added support for the full range of inline markup: <b>bold</b>,
 88    <i>italic</i>, <code>code</code>, <code>verbatim</code>, <span style="text-decoration:underline;">underline</span>, <del>strikethrough</del>.</li>
 89  <li>Lots of refactoring to make the code more maintainable.</li>
 90</ul>
 91<h2><span class="heading-number heading-number-2">2.8</span> 2009-12-23: Version 0.1</h2>
 92<ul>
 93  <li>Added support for block code, like this:
 94    <pre class="example">
 95  def flush!
 96  @logger.debug &quot;FLUSH ==========&gt; #{@output_type}&quot;
 97  if (@output_type == :blank) then
 98    @output &lt;&lt; &quot;\n&quot;
 99  elsif (@buffer.length &gt; 0) then
100    if @cancel_modifier then
101      @output &lt;&lt; &quot;p. &quot; if @output_type == :paragraph
102      @cancel_modifier = false
103    end
104    @output &lt;&lt; @paragraph_modifier if (@paragraph_modifier and not sticky_modifier?)
105    @output &lt;&lt; @buffer.textile_substitution &lt;&lt; &quot;\n&quot;
106  end
107  @buffer = &quot;&quot;
108end
109    </pre>
110  </li>
111  <li>Major code cleanup: Created the <code>OutputBuffer</code> class that
112    greatly simplified a lot of the messiness of <code>textile</code>
113    conversion.</li>
114  <li>Added support for line breaks within list items.</li>
115</ul>