Class: Liquid::Markdown
- Inherits:
-
DmCore::LiquidBlock
- Object
- DmCore::LiquidBlock
- Liquid::Markdown
- Includes:
- DmCore::LiquidHelper
- Defined in:
- app/liquid/tags/markdown.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#render(context) ⇒ Object
——————————————————————————.
Class Method Details
.details ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'app/liquid/tags/markdown.rb', line 10 def self.details { name: self.tag_name, summary: 'Process text with Markdown', category: 'structure', description: <<-END_OF_DESCRIPTION Process the enclosed text with Markdown. Useful when your processing a page as HTML, but you would like to use Markdown in certain sections. ~~~ {% markdown %} ...content {% endmarkdown %} ~~~ END_OF_DESCRIPTION } end |
Instance Method Details
#render(context) ⇒ Object
6 7 8 |
# File 'app/liquid/tags/markdown.rb', line 6 def render(context) markdown(super, safe: false) end |