Class: Panda::Editor::Blocks::Header
- Defined in:
- lib/panda/editor/blocks/header.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Panda::Editor::Blocks::Base
Instance Method Details
#render ⇒ Object
7 8 9 10 11 |
# File 'lib/panda/editor/blocks/header.rb', line 7 def render content = sanitize(data['text']) level = data['level'] || 2 html_safe("<h#{level}>#{content}</h#{level}>") end |