Class: EnkiRender

Inherits:
Redcarpet::Render::HTML
  • Object
show all
Defined in:
lib/enki/redcarpenter.rb

Instance Method Summary collapse

Instance Method Details

#block_code(code, language) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/enki/redcarpenter.rb', line 4

def block_code(code, language)
  "    <ac:structured-macro ac:name=\"code\">\n      <ac:plain-text-body>\n        <![CDATA[\#{code}]]>\n      </ac:plain-text-body>\n    </ac:structured-macro>\n  HTML\nend\n"

#table(header, body) ⇒ Object



14
15
16
17
18
19
20
21
22
23
# File 'lib/enki/redcarpenter.rb', line 14

def table(header, body)
  "    <table>\n      <tbody>\n        \#{header}\n        \#{body}\n      </tbody>\n    </table>\n  HTML\nend\n"