# File lib/maruku/input/parse_block.rb, line 472
        def read_ref_definition(src, out)      
                line = src.shift_line
                
                
                # if link is incomplete, shift next line
                if src.cur_line && !([:footnote_text, :ref_definition, :definition, :abbreviation].include? src.cur_line.md_type) && 
                        ([1,2,3].include? number_of_leading_spaces(src.cur_line) ) 
                        line += " "+ src.shift_line
                end
                
#               puts "total= #{line}"
                
                match = LinkRegex.match(line)
                if not match
                        maruku_error "Link does not respect format: '#{line}'"
                        return
                end
                
                id = match[1]; url = match[2]; title = match[3]; 
                id = sanitize_ref_id(id)
                
                hash = self.refs[id] = {:url=>url,:title=>title}
                
                stuff=match[4]
                
                if stuff
                        stuff.split.each do |couple|
#                                       puts "found #{couple}"
                                k, v = couple.split('=')
                                v ||= ""
                                if v[0,1]=='"' then v = v[1, v.size-2] end
#                                       puts "key:_#{k}_ value=_#{v}_"
                                hash[k.to_sym] = v
                        end
                end
#                       puts hash.inspect
                
                out.push md_ref_def(id, url, meta={:title=>title})
        end