Class: Recruiter::Render::HTML

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Defined in:
lib/recruiter/render/html.rb

Instance Method Summary collapse

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