Class: StringMarkdown::PygmentizeHTML
- Inherits:
-
Redcarpet::Render::HTML
- Object
- Redcarpet::Render::HTML
- StringMarkdown::PygmentizeHTML
- Defined in:
- lib/string_markdown.rb
Instance Method Summary collapse
Instance Method Details
#block_code(code, language) ⇒ Object
21 22 23 |
# File 'lib/string_markdown.rb', line 21 def block_code code, language ::Pygments.highlight code, lexer: language, options: {encoding: 'utf-8'} end |