module Slideshow
module SlideFilter
# add slide directive before h1 (tells slideshow gem where to break slides)
#
# e.g. changes:
#
# to
# html comment -> _S9SLIDE_ (note: rdoc can't handle html comments?)
#
def add_slide_directive_before_h1( content )
# mark h1 for getting wrapped into slide divs
# note: use just
slide_count = 0
content.gsub!( /\n#{Regexp.last_match(0)}"
end
puts " Adding #{slide_count} slide breaks (using h1 rule)..."
content
end
# add slide directive before div h1 (for pandoc-generated html)
#
# e.g. changes:
#