Class: IteyeRender
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- IteyeRender
- Defined in:
- lib/md2cnblog/iteye_translator.rb
Instance Method Summary collapse
Instance Method Details
#block_code(code, lang) ⇒ Object
3 4 5 6 |
# File 'lib/md2cnblog/iteye_translator.rb', line 3 def block_code(code, lang) class_name = (lang.nil?)? '' : %Q[ class="#{lang}" ] %Q[<pre name="code" #{class_name}>#{code}</pre>] end |