Class: Recruiter::Render::HTML
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- Recruiter::Render::HTML
- Defined in:
- lib/recruiter/render/html.rb
Instance Method Summary collapse
-
#block_code(text, language) ⇒ Object
def initialize(*args) super( hard_wrap: true ) end.
Instance Method Details
#block_code(text, language) ⇒ Object
def initialize(*args)
super(
hard_wrap: true
)
end
12 13 14 15 16 17 18 |
# File 'lib/recruiter/render/html.rb', line 12 def block_code(text, language) begin Pygments.highlight(text, lexer: language) rescue Pygments.highlight(text) end end |