Method: Wing::Generator#body
- Defined in:
- lib/wing.rb
#body ⇒ Object
105 106 107 108 109 110 111 112 113 |
# File 'lib/wing.rb', line 105 def body require "github/markdown" GitHub::Markdown.to_html(content, :markdown) do |code, lang| if lang == "diagram" %Q|<div class="mermaid">\n#{code}\n</div>\n| end end end |