all repos — markup @ 4c10ef7ce2833003a79832f368c89509fd03d5e5

The code we use to render README.your_favorite_markup

improved POD rendering
Chris Wanstrath chris@ozmm.org
Mon, 02 Nov 2009 17:54:49 -0800
commit

4c10ef7ce2833003a79832f368c89509fd03d5e5

parent

dc4eb76fe9b862b3afbdbc9de4b3c3cffd10be58

1 files changed, 1 insertions(+), 1 deletions(-)

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

@@ -20,7 +20,7 @@ #

# Any block passed to `command` will be handed the command's STDOUT for # post processing. command("/usr/bin/env pod2html", /pod/) do |rendered| - if rendered =~ /<!-- INDEX BEGIN -->\s*(.+)\s*<!-- INDEX END -->/mi + 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