all repos — markup @ 0028d39628515842395b56bd2f079d7240bcd62d

The code we use to render README.your_favorite_markup

strip the index comments in POD
Chris Wanstrath chris@ozmm.org
Mon, 02 Nov 2009 18:02:40 -0800
commit

0028d39628515842395b56bd2f079d7240bcd62d

parent

71aace4ba4fab6d69681026cb421516ab102d2b9

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M lib/github/markups.rblib/github/markups.rb

@@ -23,6 +23,6 @@ command("/usr/bin/env pod2html", /pod/) do |rendered|

if rendered =~ /<body.+?>\s*(.+)\s*<\/body>/mi `rm pod2htmd.tmp` if File.exists?('pod2htmd.tmp') rescue nil `rm pod2htmi.tmp` if File.exists?('pod2htmi.tmp') rescue nil - $1 + $1.sub('<!-- INDEX BEGIN -->', '').sub('<!-- INDEX END -->', '') end end
M test/markups/README.pod.htmltest/markups/README.pod.html

@@ -1,4 +1,4 @@

-<!-- INDEX BEGIN --> + <div name="index"> <p><a name="__index__"></a></p>

@@ -27,7 +27,7 @@ </ul>

<hr name="index" /> </div> -<!-- INDEX END --> + <p> </p>