Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @slides = @slides.collect do |slide|
- slide = "h1" + slide
- body, notes = slide.split("--notes--")
- body = RedCloth.new(body, [:no_span_caps]).to_html
- body.gsub!(/<code>(.|\s)*<\/code>/) { |match| CodeRay.scan(match, :ruby).div(:line_numbers => :table, :css => :class)}
- body.gsub!(/(<code>|<\?code>)/, '')
- notes = RedCloth.new(notes, [:no_span_caps]).to_html if notes
- {:body => body, :notes => notes}
- end
Add Comment
Please, Sign In to add comment