Class: Lilp::LiterateRender
- Inherits:
-
Redcarpet::Render::Base
- Object
- Redcarpet::Render::Base
- Lilp::LiterateRender
- Defined in:
- lib/lilp/base.rb
Constant Summary collapse
- COMMENT_SIGN =
"# "
Instance Method Summary collapse
Instance Method Details
#block_code(code, language) ⇒ Object
47 48 49 |
# File 'lib/lilp/base.rb', line 47 def block_code(code, language) code += "\n" end |
#paragraph(text) ⇒ Object
42 43 44 45 |
# File 'lib/lilp/base.rb', line 42 def paragraph(text) text += "\n" text.gsub(/^/, COMMENT_SIGN) end |