all repos — markup @ 12d00626e726922d0898e9ddb675cc0678b7cf36

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