class RDoc::Markdown::Literals

def current_line(target=pos)

def current_line(target=pos)
  cur_offset = 0
  cur_line = 0
  string.each_line do |line|
    cur_line += 1
    cur_offset += line.size
    return cur_line if cur_offset >= target
  end
  -1
end