Class: Lilp::LiterateRender

Inherits:
Redcarpet::Render::Base
  • Object
show all
Defined in:
lib/lilp/base.rb

Constant Summary collapse

COMMENT_SIGN =
"#  "

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



52
53
54
# File 'lib/lilp/base.rb', line 52

def block_code(code, language)
  code += "\n"
end

#paragraph(text) ⇒ Object



47
48
49
50
# File 'lib/lilp/base.rb', line 47

def paragraph(text)
  text += "\n"
  text.gsub(/^/, COMMENT_SIGN)
end