# File lib/asciidoctor/substituters.rb, line 705 def sub_callouts(text) text.gsub(REGEXP[:callout_render]) { # alias match for Ruby 1.8.7 compat m = $~ # honor the escape if m[0].start_with? '\\' next "<#{m[1]}>" end Inline.new(self, :callout, m[1], :id => document.callouts.read_next_id).render } end