Permalink
Browse files

pod!

  • Loading branch information...
1 parent 8a8b52e commit ebff9cba0476220be0b992befd495bfd760bf71a @defunkt defunkt committed Oct 31, 2009
Showing with 29 additions and 0 deletions.
  1. +6 −0 lib/github/markups.rb
  2. +23 −0 test/markup_test.rb
View
@@ -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
@@ -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

0 comments on commit ebff9cb

Please sign in to comment.