# File lib/maruku/ext/math/to_html.rb, line 162 def to_html_divref unless hash = self.doc.refid2ref.values.find {|h| h.has_key?(self.refid)} maruku_error "Cannot find div #{self.refid.inspect}" return xtext("\\ref{#{self.refid}}") end ref= hash[self.refid] a = xelem('a') a['class'] = 'maruku-ref' a['href'] = "#" + self.refid a << xtext(ref.num.to_s) a end