def METHOD_NAME(self, workbook_md: str) -> str:
    new_workbook_md = ""
    number_of_skipped_lines = 0
    skip = False
    for line in workbook_md.splitlines():
        if "<!-- current users table: start -->" in line:
            # do not copy the old current users table
            skip = True
            # insert the new table including the marker
            new_workbook_md += line + "\n"
            new_workbook_md += self._render_current_users_table()
        elif "<!-- current users table: end -->" in line:
            skip = False
            # insert the marker
            new_workbook_md += line + "\n"
        elif "<!-- tracking table: next row -->" in line:
            # insert the new row including the marker
            new_workbook_md += self._render_tracking_table_row(
                old_number_of_users=number_of_skipped_lines - 2
                if number_of_skipped_lines > 0
                else 0
            )
            new_workbook_md += line + "\n"
        elif not skip:
            new_workbook_md += line + "\n"
        else:
            # count the number of skipped current users table lines
            # this number minus the table header is the old number of users
            number_of_skipped_lines += 1
    return new_workbook_md