3 ms·
noticed Gollum supports Pod ~ http://perldoc.perl.org/perlpod.html http://perldoc.perl.org/perlpod.html as a markup language. Didn't know that ruby supported a
by bootload 16y ago
noticed Gollum supports Pod ~ http://perldoc.perl.org/perlpod.html http://perldoc.perl.org/perlpod.html as a markup language. Didn't know that ruby supported a perl interface so I had a poke around wondering how and via gollum found this in github markup tree ~ https://github.com/github/markup/blob/master/lib/github/markups.rb https://github.com/github/markup/blob/master/lib/github/mark...
# pod2html is nice enough to generate a
# full-on HTML document for us,
# so we return the favor by ripping out the good parts.
# Any block passed to `command` will be handed
# the command's STDOUT for post processing.
command("/usr/bin/env perl -MPod::Simple::HTML -e Pod::Simple::HTML::go", /pod/) do |rendered|
if rendered =~ /<!-- start doc -->\s*(.+)\s*<!-- end doc -->/mi
$1
end
end