module Kramdown
  module Converter
    class LatexRepositext
      # Include this module in latex converters that render record_marks
      module RenderRecordMarksMixin

        def convert_record_mark(el, opts)
          r = break_out_of_song(@inside_song)
          if @options[:disable_record_mark]
            r << inner(el, opts)
          else
            meta = %( id: #{ el.attr['id'] })
            r << "\\RtRecordMark{#{ meta }}#{ inner(el, opts) }"
          end
          r
        end

      end
    end
  end
end

module Kramdown
  module Converter
    class LatexRepositext
      # Include this module in latex converters that render record_marks
      module RenderRecordMarksMixin

        def convert_record_mark(el, opts)
          if @options[:disable_record_mark]
            inner(el, opts)
          else
            meta = %( id: #{ el.attr['id'] })
            "\\RtRecordMark{#{ meta }}#{ inner(el, opts) }"
          end
        end

      end
    end
  end
end

Remove another instance of break_out_of_song (not needed any more)
Remove another instance of break_out_of_song (not needed any more)