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>/) { CodeRay.scan($1, :ruby) }
- body.to_html
- notes = RedCloth.new(notes, [:no_span_caps]).to_html if notes
- {:body => body, :notes => notes}
- end
Add Comment
Please, Sign In to add comment