lib/slideshow/helpers/text_helper.rb in slideshow-0.8.5 vs lib/slideshow/helpers/text_helper.rb in slideshow-0.9
- old
+ new
@@ -4,21 +4,28 @@
puts " Including '#{name}'..."
content = File.read( name )
end
def help()
-
+ puts " Adding HTML for Slide Show help instructions..."
+
text = <<EOS
*Slide Show Keyboard Controls (Help)*
| Action | Key |
| Go to next slide | Space Bar, Right Arrow, Down Arrow, Page Down |
| Go to previous slide | Left Arrow, Up Arrow, Page Up |
| Toggle between slideshow and outline view (Ø) | T |
| Show/hide slide controls (Ø « ») | C, Move mouse to bottom right corner |
EOS
- wrap_markup( textile_to_html( text ) )
+ html = <<EOS
+<!-- begin help -->
+#{textile_to_html( text )}
+<!-- end help -->
+EOS
+
+ guard_text( html )
end
# Usage example:
# <%= code 'code/file.rb#section', :lang => 'ruby', :class => 'small' %>
\ No newline at end of file