class Kramdown::Parser::Kramdown
def parse_extension_block_depr
def parse_extension_block_depr @src.pos += @src.matched_size ext = @src[1] opts = {} body = nil parse_attribute_list(@src[3], opts) warn('DEPRECATION warning: This syntax is deprecated, use the new extension syntax') if !%w{comment nomarkdown options}.include?(ext) warn('DEPRECATION warning: Custom extensions will be removed in a future version - use a template processor like ERB instead') end if !@extension.public_methods.map {|m| m.to_s}.include?("parse_#{ext}") warning("No extension named '#{ext}' found - ignoring extension block") body = :invalid end if !@src[2] stop_re = /#{EXT_BLOCK_START_STR_DEPR % ext}/ if result = @src.scan_until(stop_re) parse_attribute_list(@src[3], opts) body = result.sub!(stop_re, '') if body != :invalid else body = :invalid warning("No ending line for extension block '#{ext}' found - ignoring extension block") end end @extension.send("parse_#{ext}", self, opts, body) if body != :invalid true end