# File lib/asciidoctor/block.rb, line 49
  def content
    case @context
    when :preamble
      @blocks.map {|b| b.render }.join
    # lists get iterated in the template (for now)
    # list items recurse into this block when their text and content methods are called
    when :ulist, :olist, :dlist, :colist
      @buffer
    when :listing, :literal
      apply_literal_subs(@buffer)
    when :pass
      apply_passthrough_subs(@buffer)
    when :admonition, :example, :sidebar, :quote, :verse, :open
      if !@buffer.nil?
        apply_para_subs(@buffer)
      else
        @blocks.map {|b| b.render }.join
      end
    else
      apply_para_subs(@buffer)
    end
  end