Module: Redcarpet::Render::SeeingIsBelieving
- Defined in:
- lib/redcarpet/render/seeing_is_believing.rb,
lib/redcarpet/render/seeing_is_believing/options.rb,
lib/redcarpet/render/seeing_is_believing/version.rb,
lib/redcarpet/render/seeing_is_believing/enricher.rb
Defined Under Namespace
Classes: Enricher, Options
Constant Summary
collapse
- VERSION =
"0.2.2"
Instance Method Summary
collapse
Instance Method Details
#block_code(code, language) ⇒ Object
8
9
10
11
12
13
14
15
16
|
# File 'lib/redcarpet/render/seeing_is_believing.rb', line 8
def block_code(code, language)
if language&.start_with? "ruby+"
options = Options.parse(language)
enriched_code = Enricher.new(options).process(code)
super(enriched_code, "ruby")
else
super(code, language)
end
end
|