Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pod!

  • Loading branch information...
commit ebff9cba0476220be0b992befd495bfd760bf71a 1 parent 8a8b52e
@defunkt defunkt authored
Showing with 29 additions and 0 deletions.
  1. +6 −0 lib/github/markups.rb
  2. +23 −0 test/markup_test.rb
View
6 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
View
23 test/markup_test.rb
@@ -82,4 +82,27 @@ def test_graceful_fail
</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
Please sign in to comment.
Something went wrong with that request. Please try again.