all repos — markup @ ebff9cba0476220be0b992befd495bfd760bf71a

The code we use to render README.your_favorite_markup

pod!
Chris Wanstrath chris@ozmm.org
Fri, 30 Oct 2009 23:43:54 -0700
commit

ebff9cba0476220be0b992befd495bfd760bf71a

parent

8a8b52e3e33942a230102c7576a441f03721710f

2 files changed, 29 insertions(+), 0 deletions(-)

jump to
M lib/github/markups.rblib/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.rbtest/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