require 'redcarpet' class ImpressRenderer < Redcarpet::Render::HTML @@attrs = [] @@current = 0 @@head = "" def self.init_with_attrs _attrs, _opts @@attrs = _attrs @@current = 0 @@opts = _opts end def self.set_head head @@head = head end def hrule # this is how we later inject attributes into pages. what an awful hack. @@current += 1 %{
} end def block_code code, lang "
#{code}
" end def codespan code "#{code}" end def mathjax if @@opts[:latex] %{ } end end def doc_header %{ #{self.mathjax} #{@@head}

Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

} end def doc_footer %{
} end end