Class: Jekyll::MarkdownBlock

Inherits:
Liquid::Block
  • Object
show all
Defined in:
lib/jekyll-markdown-block.rb

Instance Method Summary collapse

Constructor Details

#initialize(tag_name, markup, tokens) ⇒ MarkdownBlock

Returns a new instance of MarkdownBlock.



5
6
7
# File 'lib/jekyll-markdown-block.rb', line 5

def initialize(tag_name, markup, tokens)
  super
end

Instance Method Details

#render(context) ⇒ Object

Uses the default Jekyll markdown parser to parse the contents of this block



12
13
14
15
16
# File 'lib/jekyll-markdown-block.rb', line 12

def render(context)
  site = context.registers[:site]
  converter = site.getConverterImpl(::Jekyll::Converters::Markdown)
  converter.convert(render_block(context))
end

#render_blockObject



3
# File 'lib/jekyll-markdown-block.rb', line 3

alias_method :render_block, :render