pod!
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 23:43:54 -0700
2 files changed,
29 insertions(+),
0 deletions(-)
M
lib/github/markups.rb
→
lib/github/markups.rb
@@ -13,3 +13,9 @@
command(:rest2html, /rest|rst/) command(:asciidoc2html, /asciidoc/) + +command("/usr/bin/env pod2html", /pod/) do |rendered| + if rendered =~ /<!-- INDEX BEGIN -->\s*(.+)\s*<!-- INDEX END -->/mi + $1 + end +end
M
test/markup_test.rb
→
test/markup_test.rb
@@ -82,4 +82,27 @@ <li>More <tt class="docutils literal">code</tt>, hooray</li>
</ol> </div>\n output + + + test 'README.pod', <<-input, <<-output +=head1 NAME + +podsample - A sample pod document + +=item * This is a bulleted list. + +=item * Here's another item. +input +<div name="index"> +<p><a name="__index__"></a></p> + +<ul> + +\t<li><a href="#name">NAME</a></li> +</ul> + +<hr name="index" /> +</div> +output + end